mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed custom search separator not being set
This commit is contained in:
parent
0eedfbb3f6
commit
feda4ff29a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.883417a8.min.js",
|
"assets/javascripts/bundle.js": "assets/javascripts/bundle.5ad6861d.min.js",
|
||||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.883417a8.min.js.map",
|
"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": "assets/javascripts/vendor.de50e36d.min.js",
|
||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.de50e36d.min.js.map",
|
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.de50e36d.min.js.map",
|
||||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.7a2ea5ba.min.js",
|
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.7a2ea5ba.min.js",
|
||||||
|
@ -183,7 +183,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/vendor.de50e36d.min.js' | url }}"></script>
|
<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 = {} -%}
|
{%- set translations = {} -%}
|
||||||
{%- for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
|
@ -72,7 +72,7 @@ function setupSearchIndex(
|
|||||||
config.lang = [translate("search.config.lang")]
|
config.lang = [translate("search.config.lang")]
|
||||||
|
|
||||||
/* Override default separator with value from translation */
|
/* Override default separator with value from translation */
|
||||||
if (config.separator === "[\s\-]+")
|
if (config.separator === "[\\s\\-]+")
|
||||||
config.separator = translate("search.config.separator")
|
config.separator = translate("search.config.separator")
|
||||||
|
|
||||||
/* Set pipeline from translation */
|
/* Set pipeline from translation */
|
||||||
|
Loading…
Reference in New Issue
Block a user