clarity-pattern-parser 10.2.11 → 10.2.12
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/patterns/ExpressionPattern.test.ts +11 -11
- package/src/patterns/ExpressionPattern.ts +2 -2
package/dist/index.browser.js
CHANGED
|
@@ -2947,7 +2947,7 @@
|
|
|
2947
2947
|
}
|
|
2948
2948
|
else if (lastBinaryNode != null && lastUnaryNode != null && delimiterNode != null) {
|
|
2949
2949
|
const precedence = this._precedenceMap[name];
|
|
2950
|
-
const lastPrecendece = lastBinaryNode == null ? 0 : this._precedenceMap[lastBinaryNode.name]
|
|
2950
|
+
const lastPrecendece = lastBinaryNode == null ? 0 : this._precedenceMap[lastBinaryNode.name] == null ? -1 : this._precedenceMap[lastBinaryNode.name];
|
|
2951
2951
|
const association = this._binaryAssociation[i];
|
|
2952
2952
|
if (precedence === lastPrecendece && association === Association.right) {
|
|
2953
2953
|
const node = createNode(name, [lastUnaryNode, delimiterNode]);
|