Skip to content

Commit

Permalink
docs(readme): replace var statements (#41)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <[email protected]>
  • Loading branch information
Fdawgs authored Oct 24, 2024
1 parent 90e7177 commit f06d182
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ It is not meant as a full checker, but it detect basic cases.
# example

``` js
var safe = require('safe-regex2');
var regex = process.argv.slice(2).join(' ');
const safe = require('safe-regex2');
const regex = process.argv.slice(2).join(' ');
console.log(safe(regex));
```

Expand All @@ -33,10 +33,10 @@ true
# methods

``` js
var safe = require('safe-regex')
const safe = require('safe-regex')
```

## var ok = safe(re, opts={})
## const ok = safe(re, opts={})

Return a boolean `ok` whether or not the regex `re` is safe and not possibly
catastrophic.
Expand Down

0 comments on commit f06d182

Please sign in to comment.