Merge pull request #1361 from aeosynth/link

linkification: only 1 level of balanced parens
This commit is contained in:
Mayhem 2013-12-02 04:17:23 -08:00
commit 5e8b5ea7a1

View File

@ -30,10 +30,10 @@ Linkify =
( # One or more:
[^\s()<>]+ # Run of non-space, non-()<>
| # or
\(([^\s()<>]+|(\([^\s()<>]+\)))*\) # balanced parens, up to 2 levels
\([^\s()<>]+\) # balanced parens, up to 1 level
)+
( # End with:
\(([^\s()<>]+|(\([^\s()<>]+\)))*\) # balanced parens, up to 2 levels
\([^\s()<>]+\) # balanced parens, up to 1 level
| # or
[^\s`!()\[\]{};:'".,<>?«»“”‘’] # not a space or one of these punct chars
)