clarity-pattern-parser 10.2.1 → 10.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2788,11 +2788,11 @@ class ExpressionPattern {
2788
2788
  }
2789
2789
  _isBinaryPattern(pattern) {
2790
2790
  return pattern.type === "sequence" &&
2791
+ pattern.children.length === 3 &&
2791
2792
  pattern.children[0].type === "reference" &&
2792
2793
  pattern.children[0].name === this.name &&
2793
2794
  pattern.children[2].type === "reference" &&
2794
- pattern.children[2].name === this.name &&
2795
- pattern.children.length === 3;
2795
+ pattern.children[2].name === this.name;
2796
2796
  }
2797
2797
  _extractDelimiter(pattern) {
2798
2798
  if (pattern.type === "right-associated") {