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

Scan padding and length specifiers properly #441

Open
Happypig375 opened this issue May 16, 2021 · 1 comment
Open

Scan padding and length specifiers properly #441

Happypig375 opened this issue May 16, 2021 · 1 comment
Labels
enhancement fix A fix for something that it's not a bug but needs fixing

Comments

@Happypig375
Copy link
Contributor

Description

%02d, %5.2f, % i

Repro steps

#r "nuget:FSharpPlus"
FSharpPlus.Parsing.trySscanf "%02d" "13"
FSharpPlus.Parsing.trySscanf "%5.2f" "313.2"
FSharpPlus.Parsing.trySscanf "% i" "13"

Expected behavior

Some 13
Some 313.2
Some 13

Actual behavior

None
None
None

Known workarounds

No

Related information

  • Operating system: Windows
  • Version: 1.1.7
  • .NET Runtime, CoreCLR or Mono Version: F# Interactive version 11.4.2.0 for F# 5.0
@gusty
Copy link
Member

gusty commented May 19, 2021

Thanks for reporting it.
I am aware of this limitation. This is something that requires some work and proper testing.
Let's keep the issue open, in the meantime a PR is more than welcome.

@gusty gusty added enhancement fix A fix for something that it's not a bug but needs fixing labels May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement fix A fix for something that it's not a bug but needs fixing
Projects
None yet
Development

No branches or pull requests

2 participants