Skip to content

Commit

Permalink
v4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Aug 18, 2024
1 parent 345c73e commit 1aaabba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
9 changes: 1 addition & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
## Unreleased changes

**Improvements**

- Combining atomic/possessive syntax with subroutines previously resulted in subroutines using capturing wrappers. This is now avoided when the regex doesn’t use backreferences, resulting in faster-running generated regex source.
- Possessive fixed repetition quantifiers (e.g. `{2}+`) are now converted to greedy quantifiers, which gives the same behavior with faster-running generated regex source.

**Fixes**

- When using extended syntax (e.g. atomic groups) that resulted in the use of emulation groups in generated source, the `subclass: true` option led to incorrect values for submatches that preceded emulation groups.
-

## Released changes

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ In browsers:

```html
<script type="module">
import {regex, pattern} from 'https://cdn.jsdelivr.net/npm/[email protected].0/+esm';
import {regex, pattern} from 'https://cdn.jsdelivr.net/npm/[email protected].1/+esm';
//
</script>
```
Expand All @@ -127,7 +127,7 @@ In browsers:
<summary>Using a global name (no import)</summary>

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/regex.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/regex.min.js"></script>
<script>
const {regex, pattern} = Regex;
</script>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "regex",
"version": "4.1.0",
"version": "4.1.1",
"description": "Regex template tag with extended syntax, context-aware interpolation, and always-on best practices",
"author": "Steven Levithan",
"license": "MIT",
Expand Down

0 comments on commit 1aaabba

Please sign in to comment.