beberlei/zelten — pull request #109 by tjreo (2012-11-05 18:53:10+00:00)
Title: Allow % in URLs but not as the last character.

I've tested this (in theory but not in practice) using [this regex tester](http://myregextester.com/index.php).

The first updated line ($rexFragment) tells the parser to allow the percent sign as a valid URL character.

The second updated line ($rexTrailPunct) says that if the percent sign is the LAST character of the URL, it is punctuation and NOT part of the URL. This is true because the percent sign is used along with the next two characters to URL-encode HTML (%20 is space, etc.).