
Inline adoc files when they are included exactly once. Also fix language tags because this inlining gives us better information on what language the code is written in.
43 lines
885 B
Plaintext
43 lines
885 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[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
include::../highlighting.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
=== on 9 Dec 2018, 23:04:27 Lars Svensson wrote:
|
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
|
|
|
|
include::../comments-and-links.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|