This commit is contained in:
Luiz Silva 2024-05-06 08:45:08 -03:00
commit b5ca2d50ac
337 changed files with 24672 additions and 0 deletions

16
dist/texto_busca.js vendored Normal file
View file

@ -0,0 +1,16 @@
"use strict";
/** gerar o texto de busca removendo caracteres especies e caixa alta */
Object.defineProperty(exports, "__esModule", { value: true });
exports.texto_busca = void 0;
const texto_busca = (...texto) => texto
.map((txt) => txt === null || txt === undefined
? ""
: String(txt)
.normalize("NFD")
// biome-ignore lint/suspicious/noMisleadingCharacterClass: <explanation>
.replace(/[\u0300-\u036f]/g, "")
.replace(/\s+/g, " ")
.toLowerCase())
.join(" ");
exports.texto_busca = texto_busca;
//# sourceMappingURL=texto_busca.js.map