Better normalization of node names for navigation
This commit is contained in:
parent
e33ae8a247
commit
9a74c3e574
1 changed files with 1 additions and 1 deletions
|
|
@ -577,7 +577,7 @@ class N2NodeNavigator extends CustomHTMLElement {
|
|||
this.elChildren.replaceChildren(...childNodes)
|
||||
}// }}}
|
||||
normalizeName(name) {// {{{
|
||||
return name.toLowerCase().replaceAll(/[^-_#()a-zA-Z0-9]/g, '_')
|
||||
return name.toLowerCase().replaceAll(/\s+/g, '_')
|
||||
}// }}}
|
||||
getSearchPath() {// {{{
|
||||
return this.fieldSearch.value.toLowerCase().split(/\s+/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue