Browse Source

uncomment commented out regex

ameba23 3 years ago
parent
commit
a3fdc6b343
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      util.js

+ 2
- 4
util.js View File

@@ -10,10 +10,8 @@ function isNamedKeypair (content) {
10 10
     type: 'object',
11 11
     required: ['publicKey', 'secretKey'],
12 12
     properties: {
13
-      // publicKey: { type: 'string', pattern: '[A-Za-z0-9_-]' },
14
-      // secretKey: { type: 'string', pattern: '[A-Za-z0-9_-]' },
15
-      publicKey: { type: 'string' },
16
-      secretKey: { type: 'string' },
13
+      publicKey: { type: 'string', pattern: '[A-Za-z0-9_-]' },
14
+      secretKey: { type: 'string', pattern: '[A-Za-z0-9_-]' },
17 15
       name: { type: 'string' }
18 16
     }
19 17
   }