23 lines
462 B
Plaintext
23 lines
462 B
Plaintext
include::../description.adoc[]
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
== Sensitive Code Example
|
|
|
|
----
|
|
const regex = /(a+)+b/; // Sensitive
|
|
const regex2 = new RegExp("(a+)+b"); // Sensitive
|
|
|
|
str.search("(a+)+b"); // Sensitive
|
|
str.match("(a+)+b"); // Sensitive
|
|
str.split("(a+)+b"); // Sensitive
|
|
----
|
|
|
|
Note: String.matchAll does not raise any issue as it is not supported by NodeJS.
|
|
|
|
include::../exceptions.adoc[]
|
|
|
|
include::../see.adoc[]
|