mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-21 13:47:37 +08:00
Array decode bug
This commit is contained in:
@@ -141,7 +141,7 @@ export default class Grammar {
|
|||||||
P.regex(/\(\s*/),
|
P.regex(/\(\s*/),
|
||||||
this.grammarFor(undefined, type[0]).sepBy(this.commaSeparation),
|
this.grammarFor(undefined, type[0]).sepBy(this.commaSeparation),
|
||||||
P.regex(/\s*(?:,\s*)?\)/),
|
P.regex(/\s*(?:,\s*)?\)/),
|
||||||
).map((_0, values, _3) => values)
|
).map(([_0, values, _3]) => values)
|
||||||
} else if (type instanceof UnionType) {
|
} else if (type instanceof UnionType) {
|
||||||
result = type.types
|
result = type.types
|
||||||
.map(v => this.grammarFor(undefined, v))
|
.map(v => this.grammarFor(undefined, v))
|
||||||
|
|||||||
Reference in New Issue
Block a user