npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

skype-regex

1.1.0

@kevva

npmHomeRepoSnykSocket
Downloads:0
$ npm install skype-regex
DailyWeeklyMonthlyYearly

skype-regex Build Status

Regular expression for matching Skype URLs

Install

$ npm install --save skype-regex

Usage

var skypeRegex = require('skype-regex');

skypeRegex().test('skype:foobar123?call foo bar');
//=> true

skypeRegex({ exact: true }).test('skype:foobar123?call foo bar');
//=> false

skypeRegex({ exact: true }).test('skype:foobar123?call');
//=> true

'foo skype:foobar123?chat bar callto:foobar123'.match(skypeRegex());
//=> ['skype:foobar123?chat', 'callto:foobar123']

License

MIT © Kevin Mårtensson