]> git.wincent.com - wikitext.git/commitdiff
Add another example for token-swallowing bug
authorWincent Colaiuta <win@wincent.com>
Fri, 5 Nov 2010 23:56:07 +0000 (00:56 +0100)
committerWincent Colaiuta <win@wincent.com>
Fri, 5 Nov 2010 23:56:07 +0000 (00:56 +0100)
Signed-off-by: Wincent Colaiuta <win@wincent.com>
spec/regressions_spec.rb

index ac03f6e59ef5521a1d0c8d0ee716cbbcc81971df..edbe28ab0fa8a66f274fd150edff3a820f7a91c3 100644 (file)
@@ -877,5 +877,8 @@ describe Wikitext::Parser, 'regressions' do
     # happened with any non-space token appearing after a EXT_LINK_START +
     # PATH sequence (any such token would just be dropped on the floor).
     @parser.parse('with `[/` then').should == "<p>with <code>[/</code> then</p>\n"
+
+    # related example from the original ticket: https://wincent.com/issues/1726
+    @parser.parse('[/bar?baz=bat link]').should == "<p>[/bar?baz=bat link]</p>\n"
   end
 end