]> git.wincent.com - wikitext.git/commit
Handle empty (zero-width) link targets
authorWincent Colaiuta <win@wincent.com>
Tue, 28 Apr 2009 09:34:41 +0000 (11:34 +0200)
committerWincent Colaiuta <win@wincent.com>
Tue, 28 Apr 2009 09:34:41 +0000 (11:34 +0200)
commit294b829fa540207f7bba33051f1ed1b6243d286c
tree795741e4ddf933a7f2d55084468514dccbbbffba
parent112a5772ff64ec95a0d606726972be7d7a93831b
Handle empty (zero-width) link targets

Prior to this empty link targets like "[[]]", "[[|]]" and
"[[|foo]]" were enough to derail the parser because they
caused an exception to be raised.

See:

  https://wincent.com/issues/1289

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c
spec/regressions_spec.rb