Array decode bug

This commit is contained in:
barsdeveloper
2023-04-01 20:45:49 +02:00
parent a4d0bedfdc
commit a545e6da18

View File

@@ -141,7 +141,7 @@ export default class Grammar {
P.regex(/\(\s*/),
this.grammarFor(undefined, type[0]).sepBy(this.commaSeparation),
P.regex(/\s*(?:,\s*)?\)/),
).map((_0, values, _3) => values)
).map(([_0, values, _3]) => values)
} else if (type instanceof UnionType) {
result = type.types
.map(v => this.grammarFor(undefined, v))