@teambit/toolbox.string.strip-trailing-char
Advanced tools
Comparing version 0.0.499 to 0.0.500
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "stripTrailingChar", { | ||
enumerable: true, | ||
get: function () { | ||
return _stripTrailingChar().stripTrailingChar; | ||
} | ||
}); | ||
function _stripTrailingChar() { | ||
const data = require("./strip-trailing-char"); | ||
_stripTrailingChar = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.stripTrailingChar = void 0; | ||
var strip_trailing_char_1 = require("./strip-trailing-char"); | ||
Object.defineProperty(exports, "stripTrailingChar", { enumerable: true, get: function () { return strip_trailing_char_1.stripTrailingChar; } }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.stripTrailingChar = stripTrailingChar; | ||
@@ -13,11 +10,10 @@ /** | ||
function stripTrailingChar(str, char) { | ||
if (!str || !char) { | ||
if (!str || !char) { | ||
return str; | ||
} | ||
if (str[str.length - 1] === char) { | ||
return str.slice(0, -1); | ||
} | ||
return str; | ||
} | ||
if (str[str.length - 1] === char) { | ||
return str.slice(0, -1); | ||
} | ||
return str; | ||
} | ||
//# sourceMappingURL=strip-trailing-char.js.map |
{ | ||
"name": "@teambit/toolbox.string.strip-trailing-char", | ||
"version": "0.0.499", | ||
"version": "0.0.500", | ||
"homepage": "https://bit.cloud/teambit/toolbox/string/strip-trailing-char", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "string/strip-trailing-char", | ||
"version": "0.0.499" | ||
"version": "0.0.500" | ||
}, | ||
@@ -16,3 +16,3 @@ "dependencies": {}, | ||
"chai": "4.3.0", | ||
"@teambit/node.envs.node-babel-mocha": "0.1.4" | ||
"@teambit/node.envs.node-typescript-mocha": "0.0.1" | ||
}, | ||
@@ -19,0 +19,0 @@ "peerDependencies": {}, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4619
120