Skip to content

Support putting two format specifiers next to each other #620

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Happypig375
Copy link
Contributor

Right now, trySscanf on e.g. "%c%c" won't work because all specifiers are translated to (.*?) under the hood.

@gusty
Copy link
Member

gusty commented May 29, 2025

Indeed

> trySscanf "%c%c" "ab" ;;
val it: (char * char) option = None

But I was expecting Some ('a','b').
Hopefully you can fix it.

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