Skip to content

Commit e8e94b1

Browse files
committed
readme: update
1 parent c39efe7 commit e8e94b1

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# vimeo-regex [![NPM version][npmjs-img]][npmjs-url] [![Build Status][travis-img]][travis-url] [![Coveralls][coveralls-img]][coveralls-url]
2-
> The correct Youtube video id regex. Regex done right!
2+
> The correct Vimeo video id regex.
33
44

55
## Install [![Nodei.co stats][npmjs-ico]][npmjs-url]
@@ -11,11 +11,25 @@ $ npm test
1111
```
1212

1313

14-
## Online
15-
14+
## Play online
15+
- https://regex101.com/r/uW5oK9/4
16+
- http://regexr.com/3bdug
1617

1718
## Usage
18-
> For more use-cases see [tests](./test.js)
19+
> All use-cases are avaliable in [tests](./test.js)
20+
21+
```
22+
var vimeoRegex = require('youtube-regex');
23+
24+
// plain link
25+
vimeoRegex().test('https://vimeo.com/62092214');
26+
//=> true
27+
28+
// groups link
29+
vimeoRegex().test('http://vimeo.com/groups/musicvideo/videos/126199390');
30+
//=> true
31+
```
32+
1933

2034

2135
## Thanks

0 commit comments

Comments
 (0)