commit:a71b09f0aa5c34e4d9abb12468d3be7859663db0
author:Chip Black
committer:Chip Black
date:Thu Aug 6 01:40:58 2020 -0500
parents:3d080b0a02985b8ee656e3878c0d0cce3c0e7715
Make sure generated ids don't start with a number
diff --git a/src/id.ts b/src/id.ts
line changes: +1/-1
index cb90ff2..dec6412
--- a/src/id.ts
+++ b/src/id.ts
@@ -3,7 +3,7 @@ export type ID = string;
 export function generateID(): string {
     let s = '';
     for (let i = 0; i < 2; i++) {
-        s += Math.floor(Math.random() * 2176782336).toString(36);
+        s += 'id' + Math.floor(Math.random() * 2176782336).toString(36);
     }
 
     return s;