Comparing version 1.1.5 to 1.1.6
@@ -56,3 +56,3 @@ "use strict"; | ||
try { | ||
ibanUtil.validate(iban); | ||
ibanUtil.validate(iban.replace(/[ \t-]/g, "")); | ||
} | ||
@@ -72,2 +72,2 @@ catch (_a) { | ||
exports.IBAN = IBAN; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWJhbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pYmFuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsdUNBQXVDO0FBQ3ZDLHVDQUF1RDtBQUN2RCwrQ0FBNEM7QUFPNUMsTUFBYSxJQUFJO0lBV2YsWUFBWSxJQUFZO1FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUk7YUFDZixJQUFJLEVBQUU7YUFDTixPQUFPLENBQUMsSUFBSSxFQUFFLEVBQUUsQ0FBQzthQUNqQixXQUFXLEVBQUUsQ0FBQztRQUVqQixRQUFRLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBRXpCLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQUFDO0lBQ3JCLENBQUM7SUFPRCxjQUFjO1FBQ1osT0FBTyx1QkFBYSxDQUFDLFFBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFnQixDQUFDO0lBQzNFLENBQUM7SUFPRCxhQUFhO1FBQ1gsT0FBTyxRQUFRLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUM1QyxDQUFDO0lBT00sZ0JBQWdCO1FBQ3JCLE9BQU8sUUFBUSxDQUFDLGdCQUFnQixDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUMvQyxDQUFDO0lBT00sV0FBVztRQUNoQixPQUFPLFFBQVEsQ0FBQyxXQUFXLENBQUMsSUFBSSx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9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQztJQUNwQixDQUFDO0lBT0QsaUJBQWlCO1FBQ2YsT0FBTyxRQUFRLENBQUMsaUJBQWlCLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQ2hELENBQUM7SUFRRCxNQUFNLENBQUMsT0FBTyxDQUFDLElBQVk7UUFDekIsSUFBSTtZQUNGLFFBQVEsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxTQUFTLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQztTQUNoRDtRQUFDLFdBQU07WUFDTixPQUFPLEtBQUssQ0FBQztTQUNkO1FBQ0QsT0FBTyxJQUFJLENBQUM7SUFDZCxDQUFDO0lBRUQsTUFBTSxDQUFDLE1BQU0sQ0FBQyxFQUFnQjtRQUM1QixJQUFJLEVBQUUsS0FBSyxTQUFTLEVBQUU7WUFDcEIsT0FBTyxJQUFJLHlCQUFXLEVBQUUsQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7U0FDbEQ7UUFDRCxPQUFPLElBQUkseUJBQVcsRUFBRSxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQ25DLENBQUM7Q0FDRjtBQXRLRCxvQkFzS0MifQ== |
{ | ||
"name": "ibankit", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Validation, field extraction and creation of IBAN, BBAN, BIC numbers", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -163,3 +163,3 @@ import * as ibanUtil from "./ibanUtil"; | ||
try { | ||
ibanUtil.validate(iban); | ||
ibanUtil.validate(iban.replace(/[ \t-]/g, "")); | ||
} catch { | ||
@@ -166,0 +166,0 @@ return false; |
274015