soywiki 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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-z]\w+\.)?[A-Z][a-z]+[A-Z]\w*\s*$/
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
 
@@ -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-Z]\w*)/
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"
@@ -1,8 +1,8 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.9.0'
5
- WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z0-9]\w*\b/
4
+ VERSION = '0.9.1'
5
+ WIKI_WORD = /\b([a-z0-9][\w_]+\.)?[A-Z][a-z]+[A-Z0-9]\w*\b/
6
6
  HYPERLINK = %r|\bhttps?://[^ >)\n\]]+|
7
7
 
8
8
  def self.run
@@ -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-z][[:alnum:]_]\+\.\)\?[A-Z][a-z]\+[A-Z0-9]\w*\>'
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-z][[:alnum:]_]\+\.\)\?[A-Z][a-z]\+[A-Z]\w*\>\|https\?:[^ >)\]]\+'
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 '
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soywiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: