Fixed space character being removed
This commit is contained in:
parent
3fe47fd174
commit
64401436f5
1 changed files with 10 additions and 10 deletions
|
@ -1862,10 +1862,10 @@ const app = new Vue({
|
|||
}
|
||||
|
||||
// remove any non-alphanumeric characters and spaces from search term and item name
|
||||
searchTerm = searchTerm.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
itemName = itemName.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
artistName = artistName.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
albumName = albumName.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
searchTerm = searchTerm.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
itemName = itemName.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
artistName = artistName.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
albumName = albumName.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
|
||||
if (itemName.includes(searchTerm) || artistName.includes(searchTerm) || albumName.includes(searchTerm)) {
|
||||
return item
|
||||
|
@ -1931,10 +1931,10 @@ const app = new Vue({
|
|||
}
|
||||
|
||||
// remove any non-alphanumeric characters and spaces from search term and item name
|
||||
searchTerm = searchTerm.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
itemName = itemName.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
artistName = artistName.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
albumName = albumName.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
searchTerm = searchTerm.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
itemName = itemName.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
artistName = artistName.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
albumName = albumName.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
|
||||
if (itemName.includes(searchTerm) || artistName.includes(searchTerm) || albumName.includes(searchTerm)) {
|
||||
return item
|
||||
|
@ -1996,8 +1996,8 @@ const app = new Vue({
|
|||
// }
|
||||
|
||||
// remove any non-alphanumeric characters and spaces from search term and item name
|
||||
searchTerm = searchTerm.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
itemName = itemName.replace(/[^\p{L}\p{N}]/gu, "")
|
||||
searchTerm = searchTerm.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
itemName = itemName.replace(/[^\p{L}\p{N} ]/gu, "")
|
||||
|
||||
|
||||
if (itemName.includes(searchTerm) || artistName.includes(searchTerm) || albumName.includes(searchTerm)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue