Browse Source

Fix HtmlAttributePattern

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

4
modules/base/markdown.go

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

Loading…
Cancel
Save