From 012fad6984de3765fcc136c947bbd39541d2f0b2 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Mon, 27 Apr 2015 14:50:14 -0700 Subject: [PATCH] [Pages] Validate input Valid URL input for Pages, WTD-1145. --- platform/features/pages/bundle.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/features/pages/bundle.json b/platform/features/pages/bundle.json index 3b4d658146..f1d559dde7 100644 --- a/platform/features/pages/bundle.json +++ b/platform/features/pages/bundle.json @@ -9,7 +9,9 @@ { "key": "url", "name": "URL", - "control": "textfield" + "control": "textfield", + "pattern": "^(ftp|https?)\\:\\/\\/\\w+(\\.\\w+)*(\\:\\d+)?(\\/\\S*)*$", + "required": true } ] }