Sha256: e2e7fef827ed9425b89e91b7a6a6e0615e7567f437f187843e712b7ffe1457cf
Contents?: true
Size: 391 Bytes
Versions: 24
Compression:
Stored size: 391 Bytes
Contents
/*! * is-dotfile <https://github.com/regexps/is-dotfile> * * Copyright (c) 2015 Jon Schlinkert, contributors. * Licensed 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; };
Version data entries
24 entries across 24 versions & 6 rubygems