Skip to content

Commit

Permalink
Types: Allow number as pattern value
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Aug 6, 2024
1 parent 6cff840 commit d6e6096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ The alternative syntax isn't used because it has several disadvantages:
## 🏷️ About
`regex` was partly inspired by [XRegExp](https://github.com/slevithan/xregexp)'s `.tag` and [regexp-make-js](https://github.com/mikesamuel/regexp-make-js). `regex`'s only dependency is the ultra-lightweight [`regex-utilities`](https://github.com/slevithan/regex-utilities), which was separated so it can be reused by `regex` extensions.
`regex` was partly inspired by [XRegExp](https://github.com/slevithan/xregexp)'s `.tag` and [regexp-make-js](https://github.com/mikesamuel/regexp-make-js). `regex`'s only dependency is the ultra-lightweight [regex-utilities](https://github.com/slevithan/regex-utilities), which was separated so it can be reused by `regex` plugins.
Crafted by Steven Levithan with ❤︎ for regular expressions and their enthusiasts.<br>
MIT License.
2 changes: 1 addition & 1 deletion src/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Can be called as a function or template tag:
- `` pattern`…` `` - Same as ``pattern(String.raw`…`)``.
@overload
@param {string} value
@param {string | number} value
@returns {Pattern}
@overload
Expand Down

0 comments on commit d6e6096

Please sign in to comment.