summaryrefslogtreecommitdiffstats
path: root/node_modules/remove-trailing-separator/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/remove-trailing-separator/index.js')
-rw-r--r--node_modules/remove-trailing-separator/index.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/node_modules/remove-trailing-separator/index.js b/node_modules/remove-trailing-separator/index.js
deleted file mode 100644
index 512306b..0000000
--- a/node_modules/remove-trailing-separator/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var isWin = process.platform === 'win32';
-
-module.exports = function (str) {
- var i = str.length - 1;
- if (i < 2) {
- return str;
- }
- while (isSeparator(str, i)) {
- i--;
- }
- return str.substr(0, i + 1);
-};
-
-function isSeparator(str, i) {
- var char = str[i];
- return i > 0 && (char === '/' || (isWin && char === '\\'));
-}