Skip to content

Commit 3caaac2

Browse files
committed
replaced [0-9] with \d in regex
1 parent b85ce58 commit 3caaac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli-main/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,5 +554,5 @@ export let samValidate=function(){
554554
}
555555
export let makeid =function (length) {
556556
const crypto = require('crypto');
557-
return (crypto.randomBytes(1).toString("base64url").replace(/[0-9]/g, 'd')).toLowerCase();
557+
return (crypto.randomBytes(1).toString("base64url").replace(/\d/g, 'd')).toLowerCase();
558558
}

0 commit comments

Comments
 (0)