Updated default length
This commit is contained in:
parent
92517e3653
commit
ea87cc793b
@ -67,7 +67,7 @@ export class RunnerCard {
|
|||||||
private get paddedId(): string {
|
private get paddedId(): string {
|
||||||
let id: string = this.id.toString();
|
let id: string = this.id.toString();
|
||||||
|
|
||||||
if (id.length > 11) {
|
if (id.length > 6) {
|
||||||
throw new RunnerCardIdOutOfRangeError();
|
throw new RunnerCardIdOutOfRangeError();
|
||||||
}
|
}
|
||||||
while (id.length < 6) { id = '0' + id; }
|
while (id.length < 6) { id = '0' + id; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user