13 lines
382 B
JavaScript
13 lines
382 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.normalizeName = normalizeName;
|
|
function normalizeName(value) {
|
|
return value
|
|
.trim()
|
|
.toLowerCase()
|
|
.normalize('NFD')
|
|
.replace(/[\u0300-\u036f]/g, '')
|
|
.replace(/[^a-z0-9\s]/g, '')
|
|
.replace(/\s+/g, '');
|
|
}
|
|
//# sourceMappingURL=normalize-name.js.map
|