lib/soywiki.rb in soywiki-0.9.6 vs lib/soywiki.rb in soywiki-0.9.7

- old
+ new

@@ -1,10 +1,11 @@ require 'string_ext' module Template_Substitution; end module Soywiki - VERSION = '0.9.6' + VERSION = '0.9.7' WIKI_WORD = /\b([a-z0-9][\w_]+\.)?[A-Z][a-z]+[A-Z0-9]\w*\b/ - HYPERLINK = %r|\bhttps?://[^ >)\n\]]+| + SCHEMES = %w{https http file soyfile} + HYPERLINK = %r|\b(?:#{SCHEMES.join('|')})://[^ >)\n\]]+| def self.run require 'getoptlong' opts = GetoptLong.new(