I am having trouble finding the correct way to define a regexp validator for a plug-in's properties.schema file.
I tried this:
"scormid": {
"type": "string",
"required": true,
"title": "SCORM ID",
"default": "",
"inputType": "Text",
"validators": [/[a-zA-Z][a-zA-Z0-9_.-]*/]
},
but it says "Plugin upload failed, Error: Failed to parse schema for package".
I tried to replace it with the example in the docs:
"validators": [/foo/],
but this gives me the same error.
I also tried the extended version from the Backbone doc, but same result.