From 7ee6b24606972c39ca9904d4b40728b38b772e4b Mon Sep 17 00:00:00 2001 From: Mayhem Date: Mon, 19 Aug 2013 22:09:52 +0200 Subject: [PATCH] Handle a Chrome/WebKit/Blink bug. --- src/Linkification/Linkify.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 61bde6fe8..bce234d20 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -62,6 +62,10 @@ Linkify = range.surroundContents anchor true catch + <% if (type === 'crx') { %> + # Chrome bug: crbug.com/275848 + return true if anchor.parentNode + <% } %> # Attempt to handle cases such as: # [spoiler]www.[/spoiler]example.com # # www.example[spoiler].com[/spoiler] #