mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
5 lines
200 B
JavaScript
Vendored
5 lines
200 B
JavaScript
Vendored
export default function normalize (str, strict = true) {
|
|
return strict
|
|
? String(str).toLowerCase().trim()
|
|
: String(str).normalize('NFD').replace(/\p{Diacritic}/gu, '').toLowerCase().trim()
|
|
} |