Skip to content

Commit

Permalink
Rename files as atomic.js
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Aug 15, 2024
1 parent 92ad2e4 commit 3e50d0d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ For regexes that rely on or have the potential to trigger heavy backtracking, yo
The following edge cases rely on modern JavaScript features:

- To ensure atomization, `regex` uses nested character classes (which require flag <kbd>v</kbd>) when interpolating more than one token at a time *inside character classes*. A descriptive error is thrown when this isn't supported, which you can avoid by not interpolating multi-token patterns or strings into character classes.
- Using an interpolated `RegExp` instance with a different value for flag <kbd>i</kbd> than its outer regex relies on [regex modifiers](https://github.com/tc39/proposal-regexp-modifiers), a bleeding-edge feature available in Chrome/Edge 125 and Opera 111. A descriptive error is thrown in environments without support, which you can avoid by aligning the use of flag <kbd>i</kbd> on inner and outer regexes. Local-only application of other flags doesn't rely on this feature.
- Using an interpolated `RegExp` instance with a different value for flag <kbd>i</kbd> than its outer regex relies on [pattern modifiers](https://github.com/tc39/proposal-regexp-modifiers), a bleeding-edge feature available in Chrome/Edge 125 and Opera 111. A descriptive error is thrown in environments without support, which you can avoid by aligning the use of flag <kbd>i</kbd> on inner and outer regexes. Local-only application of other flags doesn't rely on this feature.

## 🙋 FAQ

Expand Down Expand Up @@ -787,5 +787,5 @@ The alternative syntax isn't used because it has several disadvantages:
`regex` was partly inspired by [XRegExp](https://github.com/slevithan/xregexp)'s `.tag` and [regexp-make-js](https://github.com/mikesamuel/regexp-make-js).
Crafted by Steven Levithan with ❤︎ for regular expressions and their enthusiasts.<br>
Crafted by Steven Levithan with love for regular expressions and their enthusiasts.<br>
MIT License.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<script src="./interpolate-string.spec.js"></script>
<script src="./flag-n.spec.js"></script>
<script src="./flag-x.spec.js"></script>
<script src="./atomic-groups.spec.js"></script>
<script src="./atomic.spec.js"></script>
<script src="./subroutines.spec.js"></script>
<script src="./backcompat.spec.js"></script>
<script src="./regex-syntax.spec.js"></script>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {CharClassContext, RegexContext, adjustNumberedBackrefs, capturingDelim,
import {Pattern, pattern} from './pattern.js';
import {flagNPreprocessor} from './flag-n.js';
import {flagXPreprocessor, cleanPlugin} from './flag-x.js';
import {atomicPlugin} from './atomic-groups.js';
import {atomicPlugin} from './atomic.js';
import {subroutinesPlugin} from './subroutines.js';
import {backcompatPlugin} from './backcompat.js';

Expand Down

0 comments on commit 3e50d0d

Please sign in to comment.