From 2dadb1e12a3c15ec71bb9927cf6e4f37220a1856 Mon Sep 17 00:00:00 2001 From: Alex Sulim Date: Fri, 4 Dec 2015 21:44:36 +0100 Subject: [PATCH] Allow single character path segments Updated pattern for `href` attribute allows path segments even with single character. Rubular link on used regular expression http://rubular.com/r/KJVEPqF4Dq Fixes https://github.com/interagent/prmd/issues/261. --- schemas/interagent-hyper-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/interagent-hyper-schema.json b/schemas/interagent-hyper-schema.json index a94071d..12192f1 100644 --- a/schemas/interagent-hyper-schema.json +++ b/schemas/interagent-hyper-schema.json @@ -107,7 +107,7 @@ "resourceLink": { "properties": { "href": { - "pattern": "^(/([a-z0-9][a-z0-9_\\-]*[a-z0-9]|\\{\\(.*\\)\\}))+$" + "pattern": "^(\/((?!-|_)[a-z0-9_\\-]+(?