Revision 1246
Added by John Goerzen over 17 years ago
trunk/lib/tasks/migrate_from_trac.rake | ||
---|---|---|
218 | 218 |
text = text.gsub(/\[wiki:([^\s\]]+).*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"} |
219 | 219 |
|
220 | 220 |
# Links to pages UsingJustCaps |
221 |
text = text.gsub(/[^!]\b([A-Z][a-z]+[A-Z][a-zA-Z]+)/, '[[\1]]') |
|
221 |
text = text.gsub(/[^!]\b([A-Z][a-z]+[A-Z][a-zA-Z]+)/, ' [[\1]]')
|
|
222 | 222 |
# Normalize things that were supposed to not be links |
223 | 223 |
# like !NotALink |
224 | 224 |
text = text.gsub(/(^| )!([A-Z][A-Za-z]+)/, '\1\2') |
Also available in: Unified diff
Fix trac converter WikiCaps to put a space before converted WikiCaps words