question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

numeral.validate doesn't work on negative numbers

See original GitHub issue

numeral.validate("-1234") returns false

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
chartzogecommented, Jul 21, 2017

Bump as well. It would be really nice to have a validate function that worked with negatives.

1reaction
djensen47commented, Jan 24, 2017

Normally I don’t like to “bump” issue because it’s just noise but it’s been over 2 years on this one. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validate Negative Number - javascript - Stack Overflow
It will be evaluated by JavaScript by first attempting to convert the left hand side to a number value. Further details can be...
Read more >
negative number validation - Laracasts
i already tried numeric and integer for validation but how can i validate that the input field to accept only positive number?
Read more >
Python: Check if a number is positive, negative or zero
Python Exercises, Practice and Solution: Write a Python program to check if a number is positive, negative or zero.
Read more >
Python program to count positive and negative numbers in a list
Example #1: Count positive and negative numbers from the given list using for loop Iterate each element in the list using for loop...
Read more >
Math.sign: How to Check if a Number is Positive or Negative in ...
A common gotcha is thinking that Math.sign return the converted argument value. Math.sign returns only the sign of a number. It doesn't return...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found