Fix detecting urls (#4642)

closes #4641
This commit is contained in:
Konrad Pozniak 2024-09-02 19:56:38 +02:00 committed by GitHub
commit 4d73a3c2e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 3 deletions

View file

@ -66,7 +66,7 @@ fun Spannable.highlightSpans(colour: Int, finders: List<PatternFinder> = default
for (finder in finders) {
// before running the regular expression, check if there is even a chance of it finding something
if (this.contains(finder.searchString)) {
if (this.contains(finder.searchString, ignoreCase = true)) {
val matcher = finder.pattern.matcher(this)
while (matcher.find()) {