/*!
 * is-dotfile <https://github.com/jonschlinkert/is-dotfile>
 *
 * 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 slash = str.lastIndexOf('/');
  return slash !== -1 ? str.charCodeAt(slash + 1) === 46  /* . */ : false;
};

@@ -148,243 +148,120 @@
 */%0A%0A
-module.exports = function(str) %7B%0A  if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) %7B%0A    return true;%0A  %7D%0A  var slash = str.lastIndexOf('/');%0A  return slash !== -1 ? str.charCodeAt(slash + 1) === 46  /* . */ : false
+var dotfileRegex = require('dotfile-regex');%0A%0Amodule.exports = function(str) %7B%0A  return dotfileRegex().test(str)
 ;%0A%7D;

use dotfile-regex