Comparing version 0.1.0 to 0.1.1
@@ -48,3 +48,3 @@ 'use strict'; | ||
} else { | ||
if (item && item.char === maskPart.char || input) { | ||
if (item && (item.char === maskPart.char || item.type !== _charTypesEnum2.default.USER) || input) { | ||
valueIndex++; | ||
@@ -51,0 +51,0 @@ } |
@@ -213,2 +213,5 @@ 'use strict'; | ||
this.selection.start = this.selection.end - 1; | ||
if (this.selection.start < 0) { | ||
this.selection.start = 0; | ||
} | ||
} | ||
@@ -215,0 +218,0 @@ |
{ | ||
"name": "input-core", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Core abilities of masked-input. Usefull to create custom input processors", | ||
@@ -5,0 +5,0 @@ "main": "./lib/inputCore", |
@@ -29,2 +29,4 @@ # Set of input tools for formatting | ||
0.1.1 Fix bug with removing static symbol | ||
0.1.0 First publish | ||
@@ -31,0 +33,0 @@ |
@@ -29,3 +29,3 @@ import charTypes from '../constants/charTypesEnum.js'; | ||
} else { | ||
if (item && item.char === maskPart.char || input) { | ||
if (item && (item.char === maskPart.char || item.type !== charTypes.USER) || input) { | ||
valueIndex++; | ||
@@ -32,0 +32,0 @@ } |
@@ -157,2 +157,5 @@ import defineMaskList from './functions/defineMaskList'; | ||
this.selection.start = this.selection.end - 1; | ||
if (this.selection.start < 0) { | ||
this.selection.start = 0; | ||
} | ||
} | ||
@@ -165,3 +168,3 @@ | ||
if (this.selection.start === this.selection.end) { | ||
this.selection.end++; | ||
this.selection.end++; | ||
} | ||
@@ -168,0 +171,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35103
934
42