Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 1.17 KB

.verb.md

File metadata and controls

66 lines (48 loc) · 1.17 KB

{%= name %} {%= badge("fury") %} {%= badge("travis") %}

{%= description %}

Visit the MSDN reference for Common Data Types 2.2.57 UNC for more information about UNC paths.

Install

{%= include("install-npm", {save: true}) %}

Usage

// 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 projects

{%= related(verb.related.list, {remove: name}) %}

Running tests

{%= include("tests") %}

Contributing

{%= include("contributing") %}

Author

{%= include("author") %}

License

{%= copyright() %} {%= license() %}


{%= include("footer") %}