Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read: fix script matching #18

Merged
merged 1 commit into from
Mar 4, 2023
Merged

read: fix script matching #18

merged 1 commit into from
Mar 4, 2023

Conversation

tuxcanfly
Copy link
Collaborator

This PR fixes an ugly hack in Read where we were trying to parse the data inside the script with Indexetc.

Instead, we added a new method ExtractPushData which tries to match the script with a known template. However, in the interest of time and because of variable size of data we're dealing with, we're still skipping over some error cases. Most notably once we find data, we're not bothering with trying to match the rest of the script at all.

This is still much better than the previous version of our read algorithm though.

@tuxcanfly tuxcanfly requested a review from Ferret-san March 4, 2023 02:55
@tuxcanfly tuxcanfly merged commit 70fbb90 into main Mar 4, 2023
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.

2 participants