##// END OF EJS Templates
Support WikiCaps for Trac migrations...
John Goerzen -
r1228:87fb78be0b48
parent child
Show More
@@ -216,6 +216,12 namespace :redmine do
216 216 text = text.gsub(/\[wiki:\"(.+)\".*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
217 217 text = text.gsub(/\[wiki:\"(.+)\".*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
218 218 text = text.gsub(/\[wiki:([^\s\]]+).*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
219
220 # Links to pages UsingJustCaps
221 text = text.gsub(/[^!]\b([A-Z][a-z]+[A-Z][a-zA-Z]+)/, '[[\1]]')
222 # Normalize things that were supposed to not be links
223 # like !NotALink
224 text = text.gsub(/(^| )!([A-Z][A-Za-z]+)/, '\1\2')
219 225 # Revisions links
220 226 text = text.gsub(/\[(\d+)\]/, 'r\1')
221 227 # Ticket number re-writing
General Comments 0
You need to be logged in to leave comments. Login now