31 lines
485 B
Plaintext
31 lines
485 B
Plaintext
include::../description.adoc[]
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
[source,java]
|
|
----
|
|
"[ab]|a" // The "|a" is redundant because "[ab]" already matches "a"
|
|
".*|a" // .* matches everything, so any other alternative is redundant
|
|
----
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
[source,java]
|
|
----
|
|
"[ab]"
|
|
".*"
|
|
----
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::message.adoc[]
|
|
|
|
include::highlighting.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|