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/is-dotfile/index.js | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/is-dotfile/index.js')
-rw-r--r-- | node_modules/is-dotfile/index.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/node_modules/is-dotfile/index.js b/node_modules/is-dotfile/index.js index 5a0a0caa8..46cb20b14 100644 --- a/node_modules/is-dotfile/index.js +++ b/node_modules/is-dotfile/index.js @@ -1,15 +1,14 @@ /*! - * is-dotfile <https://github.com/regexps/is-dotfile> + * is-dotfile <https://github.com/jonschlinkert/is-dotfile> * - * Copyright (c) 2015 Jon Schlinkert, contributors. - * Licensed under the MIT license. + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. */ module.exports = function(str) { if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) { return true; } - - var last = str.lastIndexOf('/'); - return last !== -1 ? str.charCodeAt(last + 1) === 46 /* . */ : false; + var slash = str.lastIndexOf('/'); + return slash !== -1 ? str.charCodeAt(slash + 1) === 46 /* . */ : false; }; |