-
Notifications
You must be signed in to change notification settings - Fork 42
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
disappearing leading plus #151
Comments
Hmm, looks like a case I did not consider. I can add some Regex logic here.
I would have to be careful though. I can see that some people would have +/- I’m front of positive or negative numbers. Joys, of inferring types.
What do you think would be best to try to match so I capture the problem you
are highlighting while allowing people to have positive and negative values?
I can do something specific for phone number formats if that is the specific problem here.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: honza ***@***.***>
Sent: Thursday, October 13, 2022 4:11:38 AM
To: alexhallam/tv ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [alexhallam/tv] disappearing leading plus (Issue #151)
This
echo '+123' | tv
produces:
tv dim: 0 x 1
123
This is an issue e.g. with phone numbers (without spaces).
This is ok:
echo '+44 123' | tv
tv dim: 0 x 1
+44 123
Bug or feature? :)
if this is a feature, I wish it was better documented.
—
Reply to this email directly, view it on GitHub<#151>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACG6GBNDZSYMWXZCJR5GF2TWC7G4VANCNFSM6AAAAAAREB6AFM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
I can imagine it's really hard (or straight impossible) to infer correct type (another example might be when having only handful of rows). First line of thought: give type hints, e.g: Options could be something like this: -s --string
-d --digits (integers)
-f --float tv -s '"mobile phone","home phone"' -f 'price' -d 'count' In case of Maybe And maybe in the future |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This
produces:
This is an issue e.g. with phone numbers (without spaces).
This is ok:
Bug or feature? :)
if this is a feature, I wish it was better documented.
The text was updated successfully, but these errors were encountered: