Skip to content

Commit

Permalink
docs: update docs and description of require-unicode-regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
lumirlumir committed Dec 3, 2024
1 parent 7e16e3f commit dfbf8fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/src/_data/rules_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2721,7 +2721,7 @@
"require-unicode-regexp": {
"type": "suggestion",
"docs": {
"description": "Enforce the use of `u` or `v` flag on RegExp",
"description": "Enforce the use of `u` or `v` flag on `RegExp`",
"recommended": false,
"url": "https://eslint.org/docs/latest/rules/require-unicode-regexp"
},
Expand Down
4 changes: 2 additions & 2 deletions docs/src/rules/require-unicode-regexp.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ further_reading:
---


RegExp `u` flag has two effects:
`RegExp` `u` flag has two effects:

1. **Make the regular expression handling UTF-16 surrogate pairs correctly.**

Expand All @@ -24,7 +24,7 @@ RegExp `u` flag has two effects:
The `u` flag disables the recovering logic Annex B defined. As a result, you can find errors early. This is similar to [the strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode).
The RegExp `v` flag, introduced in ECMAScript 2024, is a superset of the `u` flag, and offers two more features:
The `RegExp` `v` flag, introduced in ECMAScript 2024, is a superset of the `u` flag, and offers two more features:
1. **Unicode properties of strings**
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/require-unicode-regexp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @fileoverview Rule to enforce the use of `u` flag on RegExp.
* @fileoverview Rule to enforce the use of `u` or `v` flag on `RegExp`.
* @author Toru Nagashima
*/

Expand Down Expand Up @@ -48,7 +48,7 @@ module.exports = {
type: "suggestion",

docs: {
description: "Enforce the use of `u` or `v` flag on RegExp",
description: "Enforce the use of `u` or `v` flag on `RegExp`",
recommended: false,
url: "https://eslint.org/docs/latest/rules/require-unicode-regexp"
},
Expand Down

0 comments on commit dfbf8fa

Please sign in to comment.