From 97b57f085d7231dab99a283600e6851ed14fe30e Mon Sep 17 00:00:00 2001 From: James Cracknell Date: Sun, 8 Mar 2015 19:55:19 -0600 Subject: [PATCH] Fix HtmlAttributePattern --- modules/base/markdown.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/base/markdown.go b/modules/base/markdown.go index 2158ce858..a7095a8dc 100644 --- a/modules/base/markdown.go +++ b/modules/base/markdown.go @@ -112,9 +112,9 @@ const HtmlAttributePattern = `(?:` + // optional value `\s*=\s*` + `(?P` + - `"[^\x00\p{Cc}"]*"` + // double-quoted - `'[^\x00\p{Cc}']*'` + // single-quoted - `[^\x00\p{Cc}\s"'=<>\x60]+` + // unquoted + `"[^\x00\p{Cc}"]*"|` + // double-quoted + `'[^\x00\p{Cc}']*'|` + // single-quoted + `[^\x00\p{Cc}\s"'=<>\x60]+` + // unquoted `)` + `)?` + `)`