]> git.wincent.com - wikitext.git/commit
Add left-parenthesis to "URI special chars" class
authorWincent Colaiuta <win@wincent.com>
Thu, 27 Mar 2008 01:12:33 +0000 (02:12 +0100)
committerWincent Colaiuta <win@wincent.com>
Thu, 27 Mar 2008 01:12:33 +0000 (02:12 +0100)
commit6df92854e52c9ec486f40da4e9d73b4d3c247199
treec7ad39101a83cf9f4ced02c164c247a646897401
parentab04c5f7f4947901dfb2a8748b18bcdcac28320d
Add left-parenthesis to "URI special chars" class

This allows inputs like "email me (user@example.com)" and "the site
(http://example.com/)" to be correctly autolinked. Prior to this
change the left parenthesis was greedily matched as part of a
PRINTABLE token which then went on to consume the "http" or "user"
characters as well, preventing the recognition of a URI token.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/wikitext_ragel.c
ext/wikitext_ragel.rl
spec/autolinking_spec.rb