From 92cd19d4d58b71f61ad7409b6a39fd332a34f1b2 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 30 Jul 2011 12:48:13 +0200 Subject: [PATCH] fixed syntax errors in JSON --- lib/Definition/PropertyDefinition.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Definition/PropertyDefinition.json b/lib/Definition/PropertyDefinition.json index d1e9d2a..cd9594d 100644 --- a/lib/Definition/PropertyDefinition.json +++ b/lib/Definition/PropertyDefinition.json @@ -29,7 +29,7 @@ { "name" : "title", "type" : "string", - "pattern" : "/^[a-z0-9 ]*$/i", + "pattern" : "/^[a-z0-9_/- ]*$/i", "max" : 255, "translation" : { "de" : "Titel", @@ -39,7 +39,6 @@ { "name" : "description", "type" : "text", - "pattern" : "/^[a-z0-9\s]*$/i", "translation" : { "de" : "Beschreibung", "en" : "Description" @@ -353,7 +352,7 @@ { "name" : "photo", "type" : "string", - "pattern" : "/^(http?|ftp)\://[a-z0-9\-\.]+\.[a-z]{2,6}(/\S*)?$/i", + "pattern" : "/^(http?|ftp)://[a-z0-9-.]+\\.[a-z]{2,6}(/\\S*)?$/i", "translation" : { "de" : "Foto (URL)", "en" : "Photo (URL)" @@ -362,7 +361,7 @@ { "name" : "link", "type" : "string", - "pattern" : "/^(http?|ftp)\://[a-z0-9\-\.]+\.[a-z]{2,6}(/\S*)?$/i", + "pattern" : "/^(http?|ftp)://[a-z0-9-.]+\\.[a-z]{2,6}(/\\S*)?$/i", "translation" : { "de" : "Hyperlink", "en" : "Hyperlink"