Browse Source

Fix HtmlAttributePattern

pull/1019/head
James Cracknell 10 years ago
parent
commit
97b57f085d
  1. 6
      modules/base/markdown.go

6
modules/base/markdown.go

@ -112,9 +112,9 @@ const HtmlAttributePattern =
`(?:` + // optional value `(?:` + // optional value
`\s*=\s*` + `\s*=\s*` +
`(?P<attr_value>` + `(?P<attr_value>` +
`"[^\x00\p{Cc}"]*"` + // double-quoted `"[^\x00\p{Cc}"]*"|` + // double-quoted
`'[^\x00\p{Cc}']*'` + // single-quoted `'[^\x00\p{Cc}']*'|` + // single-quoted
`[^\x00\p{Cc}\s"'=<>\x60]+` + // unquoted `[^\x00\p{Cc}\s"'=<>\x60]+` + // unquoted
`)` + `)` +
`)?` + `)?` +
`)` `)`

Loading…
Cancel
Save