Compare commits
2
Commits
2229cdf20d
...
eef0fa6952
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eef0fa6952 | ||
|
|
8a82e059b7 |
@@ -67,10 +67,11 @@ export class RunnerCard {
|
||||
private get paddedId(): string {
|
||||
let id: string = this.id.toString();
|
||||
|
||||
if (id.length > 12) {
|
||||
if (id.length > 11) {
|
||||
throw new RunnerCardIdOutOfRangeError();
|
||||
}
|
||||
while (id.length < 12) { id = '0' + id; }
|
||||
while (id.length < 11) { id = '0' + id; }
|
||||
id = '2' + id;
|
||||
|
||||
return id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user