Skip to content

Commit ac5ec86

Browse files
authored
Fix/rpc password allowable pattern (#127)
* Fix RPC password allowable patterns * fix compilation error
1 parent 3c152a1 commit ac5ec86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/services/getConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ export const getConfig: T.ExpectedExports.getConfig = async (effects) => {
5353
charset: "a-z,2-7",
5454
len: 20,
5555
},
56-
pattern: '^[^\\n"]*$',
56+
pattern: "^[a-zA-Z0-9_]+$",
5757
"pattern-description":
58-
"Must not contain newline or quote characters.",
58+
"Must be alphanumeric (can contain underscore).",
5959
copyable: true,
6060
masked: true,
6161
},

scripts/services/migrations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const migration: T.ExpectedExports.migration =
5959
config.advanced.peers.addnode = (
6060
config.advanced.peers.addnode as unknown[]
6161
)
62-
.map((node) => {
62+
.map((node: any) => {
6363
if (typeof node === "string") {
6464
return { hostname: node, port: null };
6565
} else if (

0 commit comments

Comments
 (0)