inputmask
Advanced tools
Comparing version 5.0.7-beta.19 to 5.0.7-beta.23
@@ -60,3 +60,3 @@ /* | ||
dateObj[targetProp] = targetProp === "ampm" ? value : value.replace(/[^0-9]/g, "0"); | ||
dateObj["raw" + targetProp] = value; | ||
dateObj["raw" + targetProp] = value.replace(/\s/g, "_"); | ||
} | ||
@@ -80,3 +80,2 @@ if (dateOperation !== undefined) { | ||
useDateObject = true; | ||
dateObj["yearSet"] = value != fcode; | ||
if (datavalue.length < 4) | ||
@@ -262,3 +261,3 @@ datavalue = pad(datavalue, 4, true); | ||
|| (!isFinite(dateParts.rawday) && new Date(dateParts.date.getFullYear(), isFinite(dateParts.rawmonth) ? dateParts.month : dateParts.date.getMonth() + 1, 0).getDate() >= dateParts.day) | ||
|| (dateParts.day == "29" && !Number.isFinite(dateParts.rawyear)) | ||
|| (dateParts.day == "29" && (!isFinite(dateParts.rawyear) || dateParts.rawyear === undefined || dateParts.rawyear === "")) | ||
|| new Date(dateParts.date.getFullYear(), isFinite(dateParts.rawmonth) ? dateParts.month : dateParts.date.getMonth() + 1, 0).getDate() >= dateParts.day) { | ||
@@ -265,0 +264,0 @@ return currentResult; |
@@ -10,3 +10,3 @@ /* | ||
import escapeRegex from "../escapeRegex"; | ||
import {seekNext} from "../positioning"; | ||
import {getLastValidPosition, seekNext} from "../positioning"; | ||
@@ -535,9 +535,12 @@ const $ = Inputmask.dependencyLib; | ||
} | ||
} else if (opts.radixPoint !== "" && buffer[0] === opts.radixPoint) { //strip radixpoint on blur when it is the latest char | ||
if (result && result.buffer) { | ||
result.buffer.shift(); | ||
} else { | ||
buffer.shift(); | ||
result = | ||
{refreshFromBuffer: true, buffer: stripBuffer(buffer)}; | ||
} else if (opts.radixPoint !== "") { //strip radixpoint on blur when it is the latest char | ||
var radixNDX = buffer.indexOf(opts.radixPoint); | ||
if (radixNDX === opts.suffix.length) { | ||
if (result && result.buffer) { | ||
result.buffer.splice(0, 1 + opts.suffix.length); | ||
} else { | ||
buffer.splice(0, 1 + opts.suffix.length); | ||
result = | ||
{refreshFromBuffer: true, buffer: stripBuffer(buffer)}; | ||
} | ||
} | ||
@@ -544,0 +547,0 @@ } |
{ | ||
"name": "inputmask", | ||
"version": "5.0.7-beta.19", | ||
"version": "5.0.7-beta.23", | ||
"description": "Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.", | ||
@@ -5,0 +5,0 @@ "main": "dist/inputmask.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
815129
10983