From ca55f0700c7b6fd9718ff0955cec408f1830b311 Mon Sep 17 00:00:00 2001 From: Alexey Korkota Date: Fri, 17 Feb 2017 11:42:07 +0300 Subject: [PATCH] Fix grammar mistakes --- plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.js b/plugin.js index 4c0d1c6..8000919 100644 --- a/plugin.js +++ b/plugin.js @@ -166,7 +166,7 @@ var linkEndsWithPunctuationMark = isLink && TRAILING_PUNCTUATION.exec(rangeString); if (linkEndsWithPunctuationMark) { var changedEndOffset = rangeNative.endOffset - linkEndsWithPunctuationMark[1].length; - // changedEndOffset will less then 0 if rangeNative contains not only TextNodes(e.g. HTMLImageElement) + // changedEndOffset will be less than 0 if rangeNative contains not only TextNodes(e.g. HTMLImageElement) if (changedEndOffset >= 0) { rangeNative.setEnd(rangeNative.endContainer, changedEndOffset); }