Commit d31c3e03 authored by Diegodlh's avatar Diegodlh
Browse files

Validate path

parent bc0147c7
......@@ -11,8 +11,13 @@
"path": {
"title": "Path",
"description": "Path of the webpage used as translation template",
"options": { "infoText": "Do not include the hostname; just the path beginning with \"/\". You may also include query (?) and fragment (#) components. Duplicate translation templates for the same path will be ignored." },
"type": "string"
"options": {
"infoText": "Do not include the hostname; just the path beginning with \"/\". You may also include query (?) and fragment (#) components. Duplicate translation templates for the same path will be ignored.",
"patternmessage": "Path must start with \"/\""
},
"type": "string",
"default": "/",
"pattern": "^\/.*"
},
"label": {
"title": "Label",
......
......@@ -11,8 +11,13 @@
"path": {
"title": "Path",
"description": "Path of the webpage used as translation test.",
"options": { "infoText": "Do not include the hostname; just the path beginning with \"/\". You may also include query (?) and fragment (#) components. Duplicate translation tests for the same path will be ignored." },
"type": "string"
"options": {
"infoText": "Do not include the hostname; just the path beginning with \"/\". You may also include query (?) and fragment (#) components. Duplicate translation tests for the same path will be ignored.",
"patternmessage": "Path must start with \"/\""
},
"type": "string",
"default": "/",
"pattern": "^\/.*"
},
"fields": {
"title": "Fields",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment