From 76ad1e373ab680b67769bf94cbb13a51028b8f8c Mon Sep 17 00:00:00 2001 From: mgorvat Date: Wed, 12 May 2021 20:52:03 +0300 Subject: [PATCH] fix: wrong occurence highlight. --- Highlighter/NSAttributedString+Extensions.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Highlighter/NSAttributedString+Extensions.swift b/Highlighter/NSAttributedString+Extensions.swift index 54686de..6699155 100644 --- a/Highlighter/NSAttributedString+Extensions.swift +++ b/Highlighter/NSAttributedString+Extensions.swift @@ -18,9 +18,9 @@ extension NSAttributedString { highlightString.append(self.endAttribute(originText: originText, bound: ranges[0].upperBound, normalAttributes: normalAttributes)) } else { - for i in 1..