Skip to content

Commit

Permalink
Fix decoding of struct schemas with whitespace (fixes #182)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Sep 22, 2024
1 parent c467605 commit 0b77275
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shared/log/StructDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ export default class StructDecoder {
}

private compileSchema(name: string, schema: string): boolean {
let valueSchemaStrs: string[] = schema.split(";").filter((schemaStr) => schemaStr.length > 0);
let valueSchemaStrs: string[] = schema
.trim()
.split(";")
.filter((schemaStr) => schemaStr.length > 0);
let valueSchemas: ValueSchema[] = [];
for (let i = 0; i < valueSchemaStrs.length; i++) {
let schemaStr = valueSchemaStrs[i];
Expand Down

0 comments on commit 0b77275

Please sign in to comment.