app/models/chunks/wiki.rb in instiki-0.10.1 vs app/models/chunks/wiki.rb in instiki-0.10.2

- old
+ new

@@ -97,10 +97,10 @@ # NOTE: This chunk must be tested before WikiWord since # a WikiWords can be a substring of a WikiLink. class Link < WikiLink unless defined? WIKI_LINK - WIKI_LINK = /(":)?\[\[([^\]]+)\]\]/ + WIKI_LINK = /(":)?\[\[\s*([^\]\s][^\]]+?)\s*\]\]/ LINK_TYPE_SEPARATION = Regexp.new('^(.+):((file)|(pic))$', 0, 'utf-8') ALIAS_SEPARATION = Regexp.new('^(.+)\|(.+)$', 0, 'utf-8') end def self.pattern() WIKI_LINK end