From 089090d3c5e0a29830a0fbb59470de9ae51035ee Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 2 Dec 2013 04:03:38 -0800 Subject: [PATCH] linkification: only 1 level of balanced parens --- src/Linkification/Linkify.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 845d9b9a5..8c0cfa351 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -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 )