Skip to content

Commit

Permalink
readme - add example on matching multiple versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 13, 2014
1 parent bb2c223 commit 74ef09e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ semverRegex().test('1.2.3-alpha.10.beta.0+build.unicorn.rainbow');

semverRegex().exec('unicorn 1.0.0 rainbow')[0];
//=> 1.0.0

'unicorn 1.0.0 and rainbow 2.1.3'.match(semverRegex());
//=> ['1.0.0', '2.1.3']
```


Expand Down

0 comments on commit 74ef09e

Please sign in to comment.