Comments (6)
Thanks for reporting, will check it later when I have time.
from awesomevalidation.
change pattern
public static boolean isNumberFormat(String text) {
return Pattern.compile("^-?\d+(.\d{1,6})?$").matcher(text).find();
}
thanks for library
from awesomevalidation.
Aha, so the problem is the negative number: the regex doesn't match the minus
, right?
from awesomevalidation.
yes
from awesomevalidation.
Sorry, then it's my bad, I'll correct it soon when I have time. Sorry for any inconvenience.
from awesomevalidation.
Solved by commit "Support negative numbers and add more unit tests", all unit tests are passed.
from awesomevalidation.
Related Issues (20)
- Unresolved reference: setTextInputLayoutErrorTextAppearance HOT 2
- Add simple custom validation function HOT 1
- Single validation removal HOT 1
- Error: Program type already present: com.google.thirdparty.publicsuffix.PublicSuffixPatterns HOT 1
- custom dialog box HOT 1
- Individual Validation On Losing Focus HOT 2
- Migrate to Kotlin HOT 8
- Duplicate Underlabels When Validating Twice HOT 2
- validate() always return true in DialogFragment HOT 5
- Debugging is not working in Andorid studio with use of Awesome validation in debug builds HOT 3
- Library is not building when i have viewpager2 in my project HOT 1
- Clear() function don't clear the added validation or remove validation. HOT 3
- Validation always returns true in FragmentActivity HOT 1
- Release to maven central HOT 3
- Help creating Regex for custom use cases HOT 1
- Email validation issue HOT 3
- The listener for all validation results HOT 1
- Doesn't AwesomeValidation works on DialogFragments?
- TextInputEditText crash HOT 1
- Alert Dialog
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesomevalidation.