@catho/quantum
Version:
Catho react components
20 lines (19 loc) • 642 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var normalizeChars = function normalizeChars(value) {
return value.replace(/([àáâãäå])|([çčć])|([èéêë])|([ìíîï])|([òóôõöø])|([ùúûü])|([-_])|(['])/g, function (str, a, c, e, i, o, u, convertToSpace, removeFromString) {
if (a) return 'a';
if (c) return 'c';
if (e) return 'e';
if (i) return 'i';
if (o) return 'o';
if (u) return 'u';
if (convertToSpace) return ' ';
if (removeFromString) return '';
return '';
});
};
var _default = exports["default"] = normalizeChars;