clarity-pattern-parser 11.0.5 → 11.0.6

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.
@@ -3004,7 +3004,7 @@
3004
3004
  _isAtom(pattern) {
3005
3005
  pattern = this._unwrapAssociationIfNecessary(pattern);
3006
3006
  const firstChild = pattern.children[0];
3007
- const lastChild = pattern.children[1];
3007
+ const lastChild = pattern.children[pattern.children.length - 1];
3008
3008
  const firstChildIsReference = this._isRecursiveReference(firstChild);
3009
3009
  const lastChildIsReference = this._isRecursiveReference(lastChild);
3010
3010
  return !firstChildIsReference && !lastChildIsReference;