1.0.0 • Published 9 years ago

coub-regex v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

coub-regex Build Status

The correct coub video id regex.

NPM

Install

$ npm install coub-regex
$ npm test

Play online

Usage

All use-cases are avaliable in tests

var coubRegex = require('coub-regex');

// plain link
coubRegex().test('https://coub.com/view/7cwhu');
//=> true

// get video ID
coubRegex().exec('https://coub.com/view/7cwh0')[5];
//=> 62092214

Thanks

You can match coub due to these people:

License

MIT © Ruslan Ismagilov