Skip to content

Commit

Permalink
readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 30, 2016
1 parent b24fe31 commit 58e5f3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# semver-regex [![Build Status](https://travis-ci.org/sindresorhus/semver-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/semver-regex)

> Regular expression for matching [semver](https://github.com/isaacs/node-semver) versions
> Regular expression for matching [semver](https://github.com/npm/node-semver) versions

## Install

```sh
```
$ npm install --save semver-regex
```


## Usage

```js
var semverRegex = require('semver-regex');
const semverRegex = require('semver-regex');

semverRegex().test('v1.0.0');
//=> true
Expand All @@ -22,7 +22,7 @@ semverRegex().test('1.2.3-alpha.10.beta.0+build.unicorn.rainbow');
//=> true

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

'unicorn 1.0.0 and rainbow 2.1.3'.match(semverRegex());
//=> ['1.0.0', '2.1.3']
Expand All @@ -36,4 +36,4 @@ semverRegex().exec('unicorn 1.0.0 rainbow')[0];

## License

MIT © [Sindre Sorhus](http:https://sindresorhus.com)
MIT © [Sindre Sorhus](https:https://sindresorhus.com)

0 comments on commit 58e5f3e

Please sign in to comment.