PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@celo/base/lib

Просмотр файла: string.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringBase = exports.normalizeAccents = exports.appendPath = void 0;
function appendPath(baseUrl, path) {
    var lastChar = baseUrl[baseUrl.length - 1];
    if (lastChar === '/') {
        return baseUrl + path;
    }
    return baseUrl + '/' + path;
}
exports.appendPath = appendPath;
// https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript
function normalizeAccents(str) {
    return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
}
exports.normalizeAccents = normalizeAccents;
exports.StringBase = {
    appendPath: appendPath,
    normalizeAccents: normalizeAccents,
};
//# sourceMappingURL=string.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!