Skip to content

Commit

Permalink
markdown files
Browse files Browse the repository at this point in the history
  • Loading branch information
ekilah committed Aug 25, 2020
1 parent 0577c93 commit a0408b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- [Parsimmon.lazy(fn)](#parsimmonlazyfn)
- [Parsimmon.lazy(description, fn)](#parsimmonlazydescription-fn)
- [Parsimmon.fail(message)](#parsimmonfailmessage)
- [Parsimmon.flags(regexp)](#parsimmonflagsregexp)
- [Parsimmon.letter](#parsimmonletter)
- [Parsimmon.letters](#parsimmonletters)
- [Parsimmon.digit](#parsimmondigit)
Expand Down Expand Up @@ -377,6 +378,10 @@ Equivalent to `Parsimmon.lazy(f).desc(description)`.

Returns a failing parser with the given message.

## Parsimmon.flags(regexp)

Returns the flags set on the given `RegExp` object. Polyfilled for old browsers.

## Parsimmon.letter

Equivalent to [`Parsimmon.regexp(/[a-z]/i)`](#parsimmonregexpregexp).
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## version 1.16.0 (2020-08-25)

- Adds `Parsimmon.flags(regexp)` export
- Fixes `Parsimmon.flags(regexp)` to work in older browsers (Edge versions 15-18)

## version 1.15.0 (2020-07-27)

- Adds support for the `s` (`dotAll`) flag in `Parsimmon.regexp`
Expand Down

0 comments on commit a0408b4

Please sign in to comment.