Fixed custom search separator not being set

This commit is contained in:
squidfunk
2020-06-13 11:35:19 +02:00
parent 0eedfbb3f6
commit feda4ff29a
5 changed files with 7 additions and 7 deletions

View File

@@ -72,7 +72,7 @@ function setupSearchIndex(
config.lang = [translate("search.config.lang")]
/* Override default separator with value from translation */
if (config.separator === "[\s\-]+")
if (config.separator === "[\\s\\-]+")
config.separator = translate("search.config.separator")
/* Set pipeline from translation */