Skip to content

Commit ba77418

Browse files
committed
FF155 ExprFeat: buffer boundary assertions in regexp
1 parent 65692fd commit ba77418

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • files/en-us/mozilla/firefox/experimental_features

files/en-us/mozilla/firefox/experimental_features/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,23 @@ These give developers more flexibility when structuring and loading JavaScript m
531531
- `dom.multiple_import_maps.enabled`
532532
- : Set to `true` to enable.
533533

534+
### Buffer boundary assertions in regular expressions
535+
536+
The [`\A`, `\z`, and `\Z` buffer boundary assertions](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Buffer_boundary_assertion) are now supported.
537+
`\A` and `\z` allow you to match the start or end of the entire input, while `\Z` matches the end of the input, ignoring a line terminator.
538+
The assertions are unaffected by the [`m`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline) flag (unlike `^` and `$`) and can only be used in [Unicode-aware mode](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode#unicode-aware_mode) (with `u` or `v` flag set).
539+
([Firefox bug 2047706](https://bugzil.la/2047706)).
540+
541+
| Release channel | Version added | Enabled by default? |
542+
| ----------------- | ------------- | ------------------- |
543+
| Nightly | 155 | No |
544+
| Developer Edition |||
545+
| Beta |||
546+
| Release |||
547+
548+
- `javascript.options.experimental.regexp_buffer_boundaries`
549+
- : Set to `true` to enable on Nightly.
550+
534551
## APIs
535552

536553
### Crash Reporting

0 commit comments

Comments
 (0)