diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/remove-trailing-separator | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/remove-trailing-separator')
4 files changed, 10 insertions, 6 deletions
diff --git a/node_modules/remove-trailing-separator/history.md b/node_modules/remove-trailing-separator/history.md index a9ca22235..d379cccc2 100644 --- a/node_modules/remove-trailing-separator/history.md +++ b/node_modules/remove-trailing-separator/history.md @@ -1,9 +1,13 @@ ## History +### 1.0.2 - 07th Jun 2017 + +- [8e13ecb](https://github.com/darsain/remove-trailing-separator/commit/8e13ecbfd7b9f5fdf97c5d5ff923e4718b874e31) ES5 compatibility + ### 1.0.1 - 25th Sep 2016 - [b78606d](https://github.com/darsain/remove-trailing-separator/commit/af90b4e153a4527894741af6c7005acaeb78606d) Remove backslash only on win32 systems ### 1.0.0 - 24th Sep 2016 -Initial release.
\ No newline at end of file +Initial release. diff --git a/node_modules/remove-trailing-separator/index.js b/node_modules/remove-trailing-separator/index.js index 1ed8e932d..9f0de5334 100644 --- a/node_modules/remove-trailing-separator/index.js +++ b/node_modules/remove-trailing-separator/index.js @@ -1,4 +1,4 @@ -const isWin = process.platform === 'win32'; +var isWin = process.platform === 'win32'; module.exports = function (str) { while (endsInSeparator(str)) { diff --git a/node_modules/remove-trailing-separator/package.json b/node_modules/remove-trailing-separator/package.json index 70d945551..8d4125de3 100644 --- a/node_modules/remove-trailing-separator/package.json +++ b/node_modules/remove-trailing-separator/package.json @@ -1,6 +1,6 @@ { "name": "remove-trailing-separator", - "version": "1.0.1", + "version": "1.0.2", "description": "Removes separators from the end of the string.", "main": "index.js", "files": [ diff --git a/node_modules/remove-trailing-separator/readme.md b/node_modules/remove-trailing-separator/readme.md index 8c643d49f..612fe3de4 100644 --- a/node_modules/remove-trailing-separator/readme.md +++ b/node_modules/remove-trailing-separator/readme.md @@ -28,8 +28,8 @@ removeTrailingSeparator('') // '' ## Backslash, or win32 separator -`\` is considered a separator only on WIN32 systems. All UNIX compliant systems -see backslash as a valid file name character, so it would break UNIX compliance +`\` is considered a separator only on WIN32 systems. All POSIX compliant systems +see backslash as a valid file name character, so it would break POSIX compliance to remove it there. In practice, this means that this code will return different things depending on @@ -48,4 +48,4 @@ removeTrailingSeparator('\\foo\\') [appveyor-url]: https://ci.appveyor.com/project/darsain/remove-trailing-separator/branch/master [appveyor-img]: https://ci.appveyor.com/api/projects/status/wvg9a93rrq95n2xl/branch/master?svg=true [coveralls-url]: https://coveralls.io/github/darsain/remove-trailing-separator?branch=master -[coveralls-img]: https://coveralls.io/repos/github/darsain/remove-trailing-separator/badge.svg?branch=master
\ No newline at end of file +[coveralls-img]: https://coveralls.io/repos/github/darsain/remove-trailing-separator/badge.svg?branch=master |