duplicate-matcher
Two definitions have the same matcher kind, source text, and effective regular-expression flags. Handlers are irrelevant: both definitions still claim the same step at runtime. Keep one definition or make the matchers intentionally distinct. Suppress only when the definitions cannot coexist in one runtime scope.
Language support
Section titled “Language support”| JavaScript/TypeScript | Cucumber-Ruby |
|---|---|
| Supported. | Supported for static strings and /.../ or %r regex literals with any ASCII punctuation delimiter other than = and \. %r=…=, %r\…\ and whitespace delimiters leave the run incomplete. |
Effective flags: JavaScript/TypeScript i, m, s, u and v; g, y and d do not
separate two matchers. Cucumber-Ruby: every supported flag (i, m, n, u), so the encoding
flags n and u keep two matchers apart. Flag order and repetition never separate two
matchers.
Cucumber-Ruby support is experimental; see Cucumber-Ruby.
Back to the rule index.