This commit is contained in:
Luiz Silva 2025-07-04 22:51:57 -03:00
parent aa7953e452
commit f8dabeb40c
75 changed files with 712 additions and 57 deletions

View file

@ -0,0 +1,10 @@
/** gerar o texto de busca removendo caracteres especies e caixa alta */
export const texto_busca = (...texto) => texto
.map((txt) => txt === null || txt === undefined
? ""
: String(txt)
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.replace(/\s+/g, " ")
.toLowerCase())
.join(" ");