]> git.wincent.com - wikitext.git/commitdiff
Update string additions to use new external link syntax
authorWincent Colaiuta <win@wincent.com>
Sun, 1 Feb 2009 21:15:49 +0000 (22:15 +0100)
committerWincent Colaiuta <win@wincent.com>
Sun, 1 Feb 2009 21:15:49 +0000 (22:15 +0100)
This brings the string additions into sync with the new link
syntax introduced in 7491ebc.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
lib/wikitext/string.rb

index 69a0041cccc56f06b1a5f63ce559edf311e7103e..c12117e1c91eb5c2853143301ea5216f94b4f3f9 100644 (file)
@@ -26,6 +26,6 @@ private
   # if speed later becomes a concern can whip up a Ragel C extension to do it
   # TODO: make this customizable (accept a lambda that performs preprocessing)
   def wikitext_preprocess
-    gsub /\b(bug|issue|request|ticket) #(\d+)/i, '[[issues/\2|\1 #\2]]'
+    gsub /\b(bug|issue|request|ticket) #(\d+)/i, '[/issues/\2 \1 #\2]'
   end
 end