Skip to content

Commit 6f8a434

Browse files
explicit workerpoolApiUrlSchema accepts empty string
1 parent c76541a commit 6f8a434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/utils/validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ export const textRecordValueSchema = () => string().default('').strict(true);
818818

819819
export const workerpoolApiUrlSchema = () =>
820820
string()
821-
.matches(/^(|https?:\/\/.*)$/, '${path} "${value}" is not a valid URL')
821+
.matches(/^(https?:\/\/.*)?$/, '${path} "${value}" is not a valid URL') // accept empty string to reset workerpool URL
822822
.default('');
823823

824824
export const smsUrlOrMapSchema = () =>

0 commit comments

Comments
 (0)