2 * is-dotfile <https://github.com/regexps/is-dotfile>
4 * Copyright (c) 2015 Jon Schlinkert, contributors.
5 * Licensed under the MIT license.
8 module.exports = function(str) {
9 if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) {
13 var last = str.lastIndexOf('/');
14 return last !== -1 ? str.charCodeAt(last + 1) === 46 /* . */ : false;