Skip to content

Commit 8cffced

Browse files
committed
1.10.0
1 parent cd75295 commit 8cffced

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

docs/rules/no-missing-g-flag.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "regexp/no-missing-g-flag"
55
description: "disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`"
6+
since: "v1.10.0"
67
---
78
# regexp/no-missing-g-flag
89

910
> disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1212
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
1313

1414
## :book: Rule Details
@@ -59,6 +59,10 @@ var newText = text.replaceAll(/Dog/i, 'cat');
5959
[`String#matchAll()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll
6060
[`String#replaceAll()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll
6161

62+
## :rocket: Version
63+
64+
This rule was introduced in eslint-plugin-regexp v1.10.0
65+
6266
## :mag: Implementation
6367

6468
- [Rule source](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/rules/no-missing-g-flag.ts)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-regexp",
3-
"version": "1.9.0",
3+
"version": "1.10.0",
44
"description": "ESLint plugin for finding RegExp mistakes and RegExp style guide violations.",
55
"engines": {
66
"node": "^12 || >=14"

0 commit comments

Comments
 (0)