soywiki 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/soywiki-expand +1 -1
- data/bin/soywiki-rename +1 -1
- data/lib/soywiki.rb +2 -2
- data/lib/soywiki.vim +2 -2
- metadata +1 -1
data/bin/soywiki-expand
CHANGED
@@ -6,7 +6,7 @@ require 'soywiki'
|
|
6
6
|
# this is different from Soywiki::WIKI_WORD in that it requires ^\s* before the
|
7
7
|
# first letter
|
8
8
|
|
9
|
-
WIKI_LINK_PATTERN = /^\s*([a-
|
9
|
+
WIKI_LINK_PATTERN = /^\s*([a-z0-9]\w+\.)?[A-Z][a-z]+[A-Z0-9]\w*\s*$/
|
10
10
|
|
11
11
|
PROCESSED_FILES = []
|
12
12
|
|
data/bin/soywiki-rename
CHANGED
@@ -42,7 +42,7 @@ def change_unqualified_inbound_links_in_same_namespace(oldname, newname)
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
RELATIVE_LINK_REGEX = /(\A|\s)([A-Z][a-z]+[A-
|
45
|
+
RELATIVE_LINK_REGEX = /(\A|\s)([A-Z][a-z]+[A-Z0-9]\w*)/
|
46
46
|
|
47
47
|
def absolutize_unqualified_outbound_links(oldname, newname)
|
48
48
|
MEMO << "Absolutizing unqualified inbound links"
|
data/lib/soywiki.rb
CHANGED
data/lib/soywiki.vim
CHANGED
@@ -10,9 +10,9 @@ let g:SoyWikiLoaded = 1
|
|
10
10
|
let mapleader = ','
|
11
11
|
|
12
12
|
" This regex matches namedspaced WikiWords and unqualified WikiWords
|
13
|
-
let s:wiki_link_pattern = '\C\m\<\([a-
|
13
|
+
let s:wiki_link_pattern = '\C\m\<\([a-z0-9][[:alnum:]_]\+\.\)\?[A-Z][a-z]\+[A-Z0-9]\w*\>'
|
14
14
|
let s:http_link_pattern = 'https\?:[^ >)\]]\+'
|
15
|
-
let s:wiki_or_web_link_pattern = '\C\<\([a-
|
15
|
+
let s:wiki_or_web_link_pattern = '\C\<\([a-z0-9][[:alnum:]_]\+\.\)\?[A-Z][a-z]\+[A-Z0-9]\w*\>\|https\?:[^ >)\]]\+'
|
16
16
|
|
17
17
|
let s:rename_links_command = 'soywiki-rename '
|
18
18
|
let s:find_pages_linking_in_command = 'soywiki-pages-linking-in '
|