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

numbro.unformat ignore byte style inputs #461

Closed
ghost opened this issue Mar 3, 2020 · 11 comments
Closed

numbro.unformat ignore byte style inputs #461

ghost opened this issue Mar 3, 2020 · 11 comments

Comments

@ghost
Copy link

ghost commented Mar 3, 2020

We are using numbro to format/unformat inputs. Currently unformat returns 2 for an input B2, because it checks if the inputs is in the for form of byte style. We would want a way to bypass this behavior i.e. for such input patterns, unformat should return 'undefined'. Please let us know how can this be achieved?

@ghost ghost changed the title numbro.unformat disable byte style inputs numbro.unformat ignore byte style inputs Mar 3, 2020
@ghost
Copy link
Author

ghost commented Mar 4, 2020

Any suggestions please?

@BenjaminVanRyseghem
Copy link
Owner

you could maybe use the + operator to try to parse it?

@ghost
Copy link
Author

ghost commented Mar 5, 2020

Can u please provide an example? Are you suggesting the javascript +? We want to use unformat as it handles cases like %, currencies etc. we only want to bypass this rule

@ghost
Copy link
Author

ghost commented Mar 7, 2020

we are running into this very often in our tests. An example would help me close this soon. Please help.

@ghost
Copy link
Author

ghost commented Mar 9, 2020

Ping....

@ghost
Copy link
Author

ghost commented Mar 12, 2020

Benjamin, It is really important for us to fix this ASAP. Any assistance would be helpful.

@ghost
Copy link
Author

ghost commented Mar 18, 2020

Well,, I guess there is no point reaching out for help here. Will try exploring other library replacements.

@BenjaminVanRyseghem
Copy link
Owner

Farewell then.

You should really read what MIT means, especially in terms of support.

@ghost
Copy link
Author

ghost commented Mar 18, 2020

Wow.. of all the messages I left on the subject you choose to respond to this...

@BenjaminVanRyseghem
Copy link
Owner

because I had nothing to answer to your previous messages, either because having no time for it, or because I had no clue. Yet you keep on pushing, ultimately threatening to move to another library.

Sorry to say, but my time is limited like for anybody else. Also, MIT means no support is guaranteed. If you build your company tech stack over MIT projects, then you should understand that most solutions are up to you to find.

@ghost
Copy link
Author

ghost commented Mar 18, 2020

I wasn't pushing anything... U responded to this thread the first time which gave me the impression that u would be interested in helping me solve the problem... That is the reason I tried providing more info on the usecase.. I left multiple messages assuming atleast one of them would catch ur attention amidst your busy schedule.... There is nothing threatening here about looking at other libraries.. it only means that I would look at how others are handling such inputs and perhaps might help me in implementing a solution on my own (or) I rather find a library which does solve my problem and I start using it.. MIT goes both ways..

Requesting for help should not be misunderstood as demand for support... Hope things are clear now..

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

No branches or pull requests

1 participant