Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b604be5

Browse files
asgerfmax-schaefer
andauthored
Apply suggestions from code review
Co-Authored-By: Max Schaefer <[email protected]>
1 parent 4c25d84 commit b604be5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

javascript/ql/src/RegExp/RegExpAlwaysMatches.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ regular expression accordingly, such as by changing a <code>*</code> to a <code>
3232
</recommendation>
3333
<example>
3434
<p>
35-
In the following example, a regular expression is used to check the format of an string <code>id</code>.
35+
In the following example, a regular expression is used to check the format of a string <code>id</code>.
3636
However, the check always passes because the regular expression can match the empty substring.
3737
For example, it will allow the ID string "<code>%%</code>" by matching an empty string at index 0.
3838
</p>

javascript/ql/src/RegExp/RegExpAlwaysMatches.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Regular expression always matches
3-
* @description Regular expression tests checks always find a match indicate dead code or a logic error
3+
* @description Regular expression tests that always find a match indicate dead code or a logic error
44
* @kind problem
55
* @problem.severity warning
66
* @id js/regex/always-matches

0 commit comments

Comments
 (0)