mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-05-25 20:54:56 +00:00
Move base-select into base
This commit is contained in:
5
resources/scripts/components/base/base-select/utils/normalize.js
vendored
Normal file
5
resources/scripts/components/base/base-select/utils/normalize.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export default function normalize (str, strict = true) {
|
||||
return strict
|
||||
? String(str).toLowerCase().trim()
|
||||
: String(str).normalize('NFD').replace(/\p{Diacritic}/gu, '').toLowerCase().trim()
|
||||
}
|
||||
Reference in New Issue
Block a user