public
Description: A quick & dirty git-powered Sinatra wiki
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/sr/git-wiki.git
better WikiWord regexp
sr (author)
Sat Jun 21 02:03:25 -0700 2008
commit  7c4cd16df9029015ab9edfe0864d950de359619a
tree    a77978a782669c6c0ada76cd95d8d30efb68e837
parent  1228e1eea05519cc8b0f4e3cfe2036e39707411b
...
27
28
29
30
 
31
32
33
...
27
28
29
 
30
31
32
33
0
@@ -27,7 +27,7 @@ class Page
0
 
0
   def body
0
     BlueCloth.new(RubyPants.new(raw_body).to_html).to_html.
0
- gsub(/\b((?:[A-Z]\w+){2,})/) do |page|
0
+ gsub(/([A-Z][a-z]+[A-Z][A-Za-z0-9]+)/) do |page|
0
         "<a class='#{Page.new(page).tracked? ? 'exists' : 'unknown'}' href='#{page}'>#{page}</a>"
0
       end
0
   end

Comments

    No one has commented yet.