I added these two patches by @MaVo159 since I think isDecimal should
and isInt should
We also discovered an error in the test-suite: Basically all checks for failing values are useless, since they are entirely wrapped in a try catch block which means that also the exceptions raised by assert.ok(false) are always caught which results in none of these exceptions ever showing up.
We have fixed that for the isDecimal and isInt tests, see ctavan@b11c522#L1R229
Do you think you might fix the remaining tests at some point?
Improve isDecimal validation
- Disallow empty strings
- Allow leading zeros like 01.123
- Allow scientific notation like 2.2250738585072011e-308
Improve isInt validation
- Allow leading zeros like 01
- Allow just zeros like 000
Original patch by MaVo159
Fix unescaped -
Convert filter to unix file format
Don't leak xss into global scope
I've added another fix which prevents the variable xss from being leaked into the global score.
Thanks for this. I'll leave #40 open and get around to fixing the other tests when I have some time.
Fixed chriso#77 semicolon in wrong place when ensuring semicolon in a…
…n entity like '