fix: Matching against domain goes too far #1820

This commit is contained in:
J-Jamet 2024-11-19 21:48:16 +01:00
parent 7f2fda0327
commit e780f8a3f0

View file

@ -154,7 +154,7 @@ class SearchHelper {
// subdomain.domain.org
stringToCheck.endsWith(".$word", !searchParameters.caseSensitive) ||
// https://domain.org
stringToCheck.endsWith("\\/$word", !searchParameters.caseSensitive)
stringToCheck.endsWith("/$word", !searchParameters.caseSensitive)
// Don't allow mydomain.org
})
return true