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

- old
+ new

@@ -69,10 +69,10 @@ "(?:\\?(#{QUERY}))?" + # Optional ?query (\6) "(?:\\#(#{FRAGMENT}))?" + # Optional #fragment (\7) '(?=\.?(?:\s|\)|\z))' # ends only with optional dot + space or ")" # or end of the string - SUSPICIOUS_PRECEDING_CHARACTER = '(!|\"\:|\"|\\\')?' # any of !, ":, ", ' + SUSPICIOUS_PRECEDING_CHARACTER = '(!|\"\:|\"|\\\'|\]\()?' # any of !, ":, ", ', ]( INTERNET_URI_REGEXP = Regexp.new(SUSPICIOUS_PRECEDING_CHARACTER + INTERNET_URI, Regexp::EXTENDED, 'N') end