Merge pull request #1361 from aeosynth/link
linkification: only 1 level of balanced parens
This commit is contained in:
commit
5e8b5ea7a1
@ -30,10 +30,10 @@ Linkify =
|
|||||||
( # One or more:
|
( # One or more:
|
||||||
[^\s()<>]+ # Run of non-space, non-()<>
|
[^\s()<>]+ # Run of non-space, non-()<>
|
||||||
| # or
|
| # or
|
||||||
\(([^\s()<>]+|(\([^\s()<>]+\)))*\) # balanced parens, up to 2 levels
|
\([^\s()<>]+\) # balanced parens, up to 1 level
|
||||||
)+
|
)+
|
||||||
( # End with:
|
( # End with:
|
||||||
\(([^\s()<>]+|(\([^\s()<>]+\)))*\) # balanced parens, up to 2 levels
|
\([^\s()<>]+\) # balanced parens, up to 1 level
|
||||||
| # or
|
| # or
|
||||||
[^\s`!()\[\]{};:'".,<>?«»“”‘’] # not a space or one of these punct chars
|
[^\s`!()\[\]{};:'".,<>?«»“”‘’] # not a space or one of these punct chars
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user