From e767f77bce926afa10be4c13a2a8d323e326158e Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 25 Aug 2013 11:29:44 -0700 Subject: [PATCH] Clean reserved words --- 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 07bf14423..48968fd64 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -107,8 +107,8 @@ Linkify = # Clean end of range i = 0 - while /[)\]}>.,]/.test char = text.charAt text.length - (1 + i) - break unless /[.,]/.test(char) or (text.match /[()\[\]{}<>]/g).length % 2 + while /[)\]}>.,]/.test t = text.charAt text.length - (1 + i) + break unless /[.,]/.test(t) or (text.match /[()\[\]{}<>]/g).length % 2 i++ if i