Patch #11064 ยป trac-2-redmine-convert-slashed-wikinames.diff
| lib/tasks/migrate_from_trac.rake | ||
|---|---|---|
| 301 | 301 |         text = text.gsub(/\[wiki:([^\s\]]+)\s(.*)\]/) {|s| "[[#{$1.delete(',./?;|:')}|#{$2.delete(',./?;|:')}]]"} | 
| 302 | 302 | |
| 303 | 303 | # Links to pages UsingJustWikiCaps | 
| 304 | text = text.gsub(/([^!]|^)(^| )([A-Z][a-z]+[A-Z][a-zA-Z]+)/, '\\1\\2[[\3]]') | |
| 304 |   text = text.gsub(/([^!]|^)(^| )([A-Z][a-z]+[A-Z][a-zA-Z\/]+)/, '\\1\\2[[\3]]') | |
| 305 | 305 | # Normalize things that were supposed to not be links | 
| 306 | 306 | # like !NotALink | 
| 307 | 307 | text = text.gsub(/(^| )!([A-Z][A-Za-z]+)/, '\1\2') |