From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/is-dotfile/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'node_modules/is-dotfile/index.js') 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 + * 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; }; -- cgit v1.2.3