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.
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/intellisense/AutoComplete.test.ts +1 -1
- package/src/patterns/ExpressionPattern.ts +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -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;
|