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

Relax "queue a task" regexp for custom tasks #872

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Jan 9, 2025

The regular expression used to detect "queue a [custom] task" only accounted for cases where "[custom]" contained at most 2 words. This update relaxes the regular expression to account for situations where it contains 3 words, as happens in the Handwriting Recognition API.

The regular expression remains somewhat strict on purpose not to match on too many things for now. We may need to relax it later on, I just propose to adjust it as we learn from experience.

The regular expression used to detect "queue a [custom] task" only accounted
for cases where "[custom]" contained at most 2 words. This update relaxes the
regular expression to account for situations where it contains 3 words, as
happens in the Handwriting Recognition API.

The regular expression remains somewhat strict on purpose not to match on too
many things for now. We may need to relax it later on, I just propose to adjust
it as we learn from experience.
@dontcallmedom dontcallmedom merged commit f5a6a84 into main Jan 10, 2025
1 check passed
@dontcallmedom dontcallmedom deleted the algo-customtask branch January 10, 2025 04:19
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