{%= description %}
Visit the MSDN reference for Common Data Types 2.2.57 UNC for more information about UNC paths.
{%= include("install-npm", {save: true}) %}
// unc-path-regex returns a function
var regex = require('{%= name %}')();
true
Returns true for windows UNC paths:
regex.test('\\/foo/bar');
regex.test('\\\\foo/bar');
regex.test('\\\\foo\\admin$');
regex.test('\\\\foo\\admin$\\system32');
regex.test('\\\\foo\\temp');
regex.test('\\\\/foo/bar');
regex.test('\\\\\\/foo/bar');
false
Returns false for non-UNC paths:
regex.test('/foo/bar');
regex.test('/');
regex.test('/foo');
regex.test('/foo/');
regex.test('c:');
regex.test('c:.');
regex.test('c:./');
regex.test('c:./file');
regex.test('c:/');
regex.test('c:/file');
{%= related(verb.related.list, {remove: name}) %}
{%= include("tests") %}
{%= include("contributing") %}
{%= include("author") %}
{%= copyright() %} {%= license() %}
{%= include("footer") %}