Skip to content

Commit

Permalink
Another Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogeyx committed Sep 13, 2017
1 parent cad4e0e commit 1ffd866
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Binary file modified SimpleValidationSrc/.vs/SimpleValidationSrc/v15/.suo
Binary file not shown.
4 changes: 2 additions & 2 deletions SimpleValidationSrc/Typescript/validation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion SimpleValidationSrc/Typescript/validation.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions SimpleValidationSrc/Typescript/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ class Validation {

// Range
if (item.dataset.valRange) {
if ((value as string).length <= parseInt(item.dataset.valRangeMin)
|| (value as string).length >= parseInt(item.dataset.valRangeMax)) {
if (parseFloat((value as string).replace(',', '.')) < parseFloat(item.dataset.valRangeMin.replace(',', '.'))
|| parseFloat((value as string).replace(',', '.')) > parseFloat(item.dataset.valRangeMax.replace(',', '.'))) {
message = item.dataset.valRange;
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/simpleValidation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1ffd866

Please sign in to comment.