Skip to content

Commit f666a7c

Browse files
committed
[Web Page] Allow dashes in domains
Fixes nasa#1507
1 parent 4d6a0d4 commit f666a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/features/pages/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ define([
4747
"key": "url",
4848
"name": "URL",
4949
"control": "textfield",
50-
"pattern": "^(ftp|https?)\\:\\/\\/\\w+(\\.\\w+)*(\\:\\d+)?(\\/\\S*)*$",
50+
"pattern": "^(ftp|https?)\\:\\/\\/[-\\w]+(\\.[-\\w]+)*(\\:\\d+)?(\\/\\S*)*$",
5151
"required": true,
5252
"cssClass": "l-input-lg"
5353
}

0 commit comments

Comments
 (0)