fix: search not indexing properly + cjk/arabic validators
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = {
|
||||
*/
|
||||
parsePath (urlPath) {
|
||||
urlPath = qs.unescape(urlPath)
|
||||
let wlist = new RegExp('(?!([^a-z0-9]|' + appdata.regex.cjk.source + '|[/-]))', 'g')
|
||||
let wlist = new RegExp('[^a-z0-9' + appdata.regex.cjk + appdata.regex.arabic + '/-]', 'g')
|
||||
|
||||
urlPath = _.toLower(urlPath).replace(wlist, '')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user