Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1fd00738
Commit
1fd00738
authored
Jan 10, 2015
by
Lars Magne Ingebrigtsen
Browse files
(eww): Don't interpret "org/foo" as an URL.
parent
790ca72b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/net/eww.el
lisp/net/eww.el
+1
-1
No files found.
lisp/ChangeLog
View file @
1fd00738
...
...
@@ -4,6 +4,7 @@
as plain URLs, even if they have spaces in them (bug#19556).
(eww): Also interpret things like "en.wikipedia.org/wiki/Free
software" as an URL.
(eww): Don't interpret "org/foo" as an URL.
2015-01-10 Daniel Colascione <dancol@dancol.org>
...
...
lisp/net/eww.el
View file @
1fd00738
...
...
@@ -258,7 +258,7 @@ word(s) will be searched for via `eww-search-prefix'."
(if (or (string-match "\\`https?:" url)
;; Also try to match "naked" URLs like
;; en.wikipedia.org/wiki/Free software
(
string-match
"\\`[a-z._]+/"
url
)
(string-match "\\`[
A-Za-z_]+\\.[A-Z
a-z._]+/" url)
(and (= (length (split-string url)) 1)
(or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url))
(> (length (split-string url "[.:]")) 1))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment