summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/mode/htmlmixed/htmlmixed.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/vendor/codemirror/mode/htmlmixed/htmlmixed.js')
-rw-r--r--public/vendor/codemirror/mode/htmlmixed/htmlmixed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/vendor/codemirror/mode/htmlmixed/htmlmixed.js b/public/vendor/codemirror/mode/htmlmixed/htmlmixed.js
index d74083ee..eb21fcc1 100644
--- a/public/vendor/codemirror/mode/htmlmixed/htmlmixed.js
+++ b/public/vendor/codemirror/mode/htmlmixed/htmlmixed.js
@@ -46,7 +46,7 @@
function getAttrValue(text, attr) {
var match = text.match(getAttrRegexp(attr))
- return match ? match[2] : ""
+ return match ? /^\s*(.*?)\s*$/.exec(match[2])[1] : ""
}
function getTagRegexp(tagName, anchored) {