mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Improve search for entries with "-" in the name
This commit is contained in:
parent
4b760a24d3
commit
9c9b2aca0d
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class app.Searcher
|
|||
max_results: app.config.max_results
|
||||
fuzzy_min_length: 3
|
||||
|
||||
SEPARATORS_REGEXP = /\:?\ |#|::|->|\$(?=\w)/g
|
||||
SEPARATORS_REGEXP = /\:?\ |#|::|->|\$(?=\w)|\-(?=\w)/g
|
||||
INFO_PARANTHESES_REGEXP = /\ \(\w+?\)$/
|
||||
EMPTY_PARANTHESES_REGEXP = /\(\)/
|
||||
EVENT_REGEXP = /\ event$/
|
||||
|
|
Loading…
Reference in a new issue