clarity-pattern-parser 10.2.1 → 10.2.3
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
CHANGED
|
@@ -2790,11 +2790,11 @@
|
|
|
2790
2790
|
}
|
|
2791
2791
|
_isBinaryPattern(pattern) {
|
|
2792
2792
|
return pattern.type === "sequence" &&
|
|
2793
|
+
pattern.children.length === 3 &&
|
|
2793
2794
|
pattern.children[0].type === "reference" &&
|
|
2794
2795
|
pattern.children[0].name === this.name &&
|
|
2795
2796
|
pattern.children[2].type === "reference" &&
|
|
2796
|
-
pattern.children[2].name === this.name
|
|
2797
|
-
pattern.children.length === 3;
|
|
2797
|
+
pattern.children[2].name === this.name;
|
|
2798
2798
|
}
|
|
2799
2799
|
_extractDelimiter(pattern) {
|
|
2800
2800
|
if (pattern.type === "right-associated") {
|
|
@@ -2818,7 +2818,7 @@
|
|
|
2818
2818
|
return pattern.type === "sequence" &&
|
|
2819
2819
|
pattern.children[0].type === "reference" &&
|
|
2820
2820
|
pattern.children[0].name === this.name &&
|
|
2821
|
-
pattern.children.length >
|
|
2821
|
+
pattern.children.length > 1;
|
|
2822
2822
|
}
|
|
2823
2823
|
_extractRecursiveTail(pattern) {
|
|
2824
2824
|
if (pattern.type === "right-associated") {
|