Have ideas to improve npm?Join in the discussion! »

    @regexp-extra/unc-path

    0.1.1 • Public • Published

    RegExp for matching Windows UNC path.

    const UNC_PATH = require('@regexp-extra/unc-path');
    // -> regular expression
     
     
    UNC_PATH.test('/foo/bar');
    // false
     
    UNC_PATH.test('\\/foo/bar');
    // true
     
    new RegExp(UNC_PATH).exec('\\/foo/bar');
    // [ '\\/foo/bar', index: 0, input: '\\/foo/bar', groups: undefined ]

    NPM

    credits: taken directly from regexhq/unc-path-regex.

    Install

    npm i @regexp-extra/unc-path

    DownloadsWeekly Downloads

    11

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    1.12 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar