@kigi/components 1.16.0 → 1.17.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -172,12 +172,12 @@ export class NgMaskIe {
|
|
|
172
172
|
let sum = results.reduce((acc, value) => acc + value, 0)
|
|
173
173
|
let mod = sum % 11
|
|
174
174
|
|
|
175
|
-
if ((mod == 0 || mod == 1) && dig
|
|
176
|
-
return
|
|
177
|
-
} else if (dig
|
|
178
|
-
return
|
|
175
|
+
if ((mod == 0 || mod == 1) && dig === 0) {
|
|
176
|
+
return true
|
|
177
|
+
} else if (mod > 1 && dig === 11 - mod) {
|
|
178
|
+
return true
|
|
179
179
|
}
|
|
180
|
-
return
|
|
180
|
+
return false
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|