inputmask-core
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,5 @@ | ||
## 2.0.1 / 2015-07-14 | ||
Fixed taking input for patterns with leading static parts when the cursor or entire selection is in the static part. | ||
## 2.0.0 / 2015-04-03 | ||
@@ -2,0 +6,0 @@ |
@@ -219,7 +219,5 @@ 'use strict'; | ||
// If a range of characters was selected and it includes the first editable | ||
// character, make sure any input given is applied to it. | ||
if (this.selection.start !== this.selection.end && | ||
this.selection.start < this.pattern.firstEditableIndex && | ||
this.selection.end > this.pattern.firstEditableIndex) { | ||
// If the cursor or selection is prior to the first editable character, make | ||
// sure any input given is applied to it. | ||
if (inputIndex < this.pattern.firstEditableIndex) { | ||
inputIndex = this.pattern.firstEditableIndex | ||
@@ -484,2 +482,2 @@ } | ||
module.exports = InputMask | ||
module.exports = InputMask |
{ | ||
"name": "inputmask-core", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Standalone input mask implementation, independent of any GUI", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
27864
0
421