We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0891e68 commit c31da98Copy full SHA for c31da98
src/lib/isISIN.js
@@ -2,6 +2,12 @@ import assertString from './util/assertString';
2
3
const isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;
4
5
+// this link details how the check digit is calculated:
6
+// https://www.isin.org/isin-format/. it is a little bit
7
+// odd in that it works with digits, not numbers. in order
8
+// to make only one pass through the ISIN characters, the
9
+// each alpha character is handled as 2 characters within
10
+// the loop.
11
12
export default function isISIN(str) {
13
assertString(str);
0 commit comments