Skip to content

Commit

Permalink
Range Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogeyx committed Sep 13, 2017
1 parent 5cbcf85 commit cad4e0e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
Binary file modified SimpleValidationSrc/.vs/SimpleValidationSrc/v15/.suo
Binary file not shown.
2 changes: 2 additions & 0 deletions SimpleValidationSrc/SimpleValidationSrc.njsproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<Name>SimpleValidationSrc</Name>
<RootNamespace>SimpleValidationSrc</RootNamespace>
<ToolsVersionPromptShown>0.0</ToolsVersionPromptShown>
<TypeScriptToolsVersion>2.4</TypeScriptToolsVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Expand Down
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 ((value as string).length <= parseInt(item.dataset.valRangeMin)
|| (value as string).length >= parseInt(item.dataset.valRangeMax)) {
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 cad4e0e

Please sign in to comment.