rspec/rules/S5850/rule-jvm.adoc
2022-02-04 16:28:24 +00:00

45 lines
515 B
Plaintext

include::description.adoc[]
== Noncompliant Code Example
[source,text]
----
^a|b|c$
----
== Compliant Solution
[source,text]
----
^(?:a|b|c)$
----
or
[source,text]
----
^a$|^b$|^c$
----
or, if you do want the anchors to only apply to ``++a++`` and ``++c++`` respectively:
[source,text]
----
(?:^a)|b|(?:c$)
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::highlighting.adoc[]
endif::env-github,rspecator-view[]