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

@ -1,6 +1,6 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.883417a8.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.883417a8.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.5ad6861d.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.5ad6861d.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.de50e36d.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.de50e36d.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.7a2ea5ba.min.js",

View File

@ -183,7 +183,7 @@
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/vendor.de50e36d.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.883417a8.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.5ad6861d.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",

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 */