node-brawlstars
Version:
Javascript library to communicate with BrawlStars API
11 lines (10 loc) • 353 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TagUtils = void 0;
var TagUtils;
(function (TagUtils) {
function Clean(tag) {
return encodeURIComponent(`#${tag.toUpperCase().replace(/O|o/g, '0').replace(/^#/g, '')}`);
}
TagUtils.Clean = Clean;
})(TagUtils || (exports.TagUtils = TagUtils = {}));