Skip to content

Commit

Permalink
update combat binlog regex
Browse files Browse the repository at this point in the history
  • Loading branch information
samualtnorman committed Jan 7, 2025
1 parent 2243067 commit 962c6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parseBinlog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export function* parseBinlog(binlog: string[]): Generator<BinlogEntry, void, und
}

assert(
/^`n--` \d \d \d \/ (?:(?:[2-9a@*?>][&%+!^#]u? )+| )xa(?: \/ (?:[2-9a@*?>][&%+!^#] )+xa)?(?: \/ (?:X )*(?:[2-9a@*?>][&%+!^#] )*)?(?:ha[\da-f] )?$/
/^`n--` \d+ \d+ (?:\d+|-) \/ (?:(?:[2-9a@*?>][&%+!^#]u? )+| )xa(?: \/ (?:[2-9a@*?>][&%+!^#] )+xa)?(?: \/ (?:X )*(?:[2-9a@*?>][&%+!^#] )*)?(?:ha[\da-f] )?$/
.test(binlog[0]),
() => `${HERE} ${JSON.stringify(binlog[0])}`
)
Expand Down

0 comments on commit 962c6b5

Please sign in to comment.