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