aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-dotfile/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/is-dotfile/index.js')
-rw-r--r--node_modules/is-dotfile/index.js11
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;
};