Skip to content

Make regex non-greedy in case eyAi is duplicated#3

Open
melonmouse wants to merge 1 commit intotrappar:gh-pagesfrom
melonmouse:patch-1
Open

Make regex non-greedy in case eyAi is duplicated#3
melonmouse wants to merge 1 commit intotrappar:gh-pagesfrom
melonmouse:patch-1

Conversation

@melonmouse
Copy link

There is roughly a 1 in 3000 chance of the magic string "eyAi" appearing more than once in the savegame file (assuming uniform random base64 files of 6KB). In that case, we want the capture group to match the first part only.

There is roughly a 1 in 3000 chance of the magic string "eyAi" appearing more than once in the savegame file (assuming uniform random base64 files of 6KB). In that case, we want the capture group to match the first part only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant