Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit d0276a2

Browse files
McSamMcSam
authored andcommitted
regex
1 parent ae3f3c5 commit d0276a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/indexPage/endpoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function addEndpoint(e) {
6565
setStorage('config.server_url', serverUrl);
6666
setStorage('config.app_id', appId);
6767

68-
const urlReg = /^(?:http(s)?:\/\/)?[\w.-]+(?:.[\w.-]+)+[\w-._~:/?#[\]@!$&'()*+,;=.]+$/;
68+
const urlReg = /^(?:http(s)?:\/\/)?[\w.-]+(?:.[\w.-]+)+[\w-._~:\/?#[\]@!$&'()*+,;=.]+$/;
6969

7070
if (!urlReg.test(serverUrl)) {
7171
$('#error')

0 commit comments

Comments
 (0)