1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-09 12:05:52 +01:00

Recognise closing paren as a delimiter in linkifyHelp.

--HG--
branch : key-processing
This commit is contained in:
Štěpán Němec
2011-01-25 00:24:22 +01:00
parent 9c232118e4
commit 506abdcd85

View File

@@ -339,7 +339,7 @@ var Template = Module("Template", {
let re = util.regexp(<![CDATA[
(?P<pre> [/\s]|^)
(?P<tag> '[\w-]+' | :(?:[\w-]+|!) | (?:._)?<[\w-]+> )
(?= [[!,;./\s]|$)
(?= [[\)!,;./\s]|$)
]]>, "g");
return this.highlightSubstrings(str, (function () {
for (let res in re.iterate(str))