This commit is contained in:
zadam
2021-11-21 17:15:10 +01:00
parent b23ead8097
commit bc854ee149
2 changed files with 6 additions and 8 deletions

View File

@@ -302,10 +302,6 @@ function filterAttributeName(name) {
return name.replace(/[^\p{L}\p{N}_:]/ug, "");
}
function wrapText(text, start, length, prefix, suffix) {
return text.substring(0, start) + prefix + text.substr(start, length) + suffix + text.substring(start + length);
}
module.exports = {
randomSecureToken,
randomString,
@@ -340,6 +336,5 @@ module.exports = {
deferred,
removeDiacritic,
normalize,
filterAttributeName,
wrapText
filterAttributeName
};