Skip to content

Commit 626a7d5

Browse files
committed
Fix punctuation
1 parent c4e56b1 commit 626a7d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/ql/src/Performance/StringReplaceAllWithNonRegex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ public class Test {
2626
## References
2727

2828
- Java SE Documentation: [String.replaceAll](https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/lang/String.html#replaceAll(java.lang.String,java.lang.String)).
29-
- Common Weakness Enumeration: [CWE-1176](https://cwe.mitre.org/data/definitions/1176.html)
29+
- Common Weakness Enumeration: [CWE-1176](https://cwe.mitre.org/data/definitions/1176.html).

java/ql/src/Performance/StringReplaceAllWithNonRegex.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ where
1919
//only contains characters that could be a simple string
2020
firstArg.getValue().regexpMatch("^[a-zA-Z0-9]+$")
2121
select replaceAllCall,
22-
"This call to 'replaceAll' should be a call `replace` as its $@ is not a regular expression.",
22+
"This call to 'replaceAll' should be a call to 'replace' as its $@ is not a regular expression.",
2323
firstArg, "first argument"

0 commit comments

Comments
 (0)