rspec/rules/S6353/java/rule.adoc
nicolas-gauthier-sonarsource fbd1da4881
Modify S6353: correct typo (#3344)
## Review

A dedicated reviewer checked the rule description successfully for:

- [ ] logical errors and incorrect information
- [ ] information gaps and missing content
- [ ] text style and tone
- [ ] PR summary and labels follow [the
guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
2023-10-19 16:11:06 +00:00

24 lines
462 B
Plaintext

include::../description.adoc[]
[source,java,diff-id=1,diff-type=noncompliant]
----
"[0-9]" // Noncompliant - same as "\\d"
"[^0-9]" // Noncompliant - same as "\\D"
"[A-Za-z0-9_]" // Noncompliant - same as "\\w"
"[\\w\\W]" // Noncompliant - same as "."
"a{0,}" // Noncompliant - same as "a*"
----
include::../fix.adoc[]
[source,java,diff-id=1,diff-type=compliant]
----
"\\d"
"\\D"
"\\w"
"."
"a*"
----
include::../implementation.adoc[]