##// END OF EJS Templates
Further refine WikiCaps processing for Trac to eliminate problems in...
John Goerzen -
r1243:888b25484409
parent child
Show More
@@ -217,8 +217,8 namespace :redmine do
217 text = text.gsub(/\[wiki:\"(.+)\".*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
217 text = text.gsub(/\[wiki:\"(.+)\".*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
218 text = text.gsub(/\[wiki:([^\s\]]+).*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
218 text = text.gsub(/\[wiki:([^\s\]]+).*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
219
219
220 # Links to pages UsingJustCaps
220 # Links to pages UsingJustWikiCaps
221 text = text.gsub(/[^!]\b([A-Z][a-z]+[A-Z][a-zA-Z]+)/, ' [[\1]]')
221 text = text.gsub(/([^!]|^)(^| )([A-Z][a-z]+[A-Z][a-zA-Z]+)/, '\\1\\2[[\3]]')
222 # Normalize things that were supposed to not be links
222 # Normalize things that were supposed to not be links
223 # like !NotALink
223 # like !NotALink
224 text = text.gsub(/(^| )!([A-Z][A-Za-z]+)/, '\1\2')
224 text = text.gsub(/(^| )!([A-Z][A-Za-z]+)/, '\1\2')
General Comments 0
You need to be logged in to leave comments. Login now