diff --git a/static/admin/index.html b/static/admin/index.html
index 8183395d..7409bd27 100644
--- a/static/admin/index.html
+++ b/static/admin/index.html
@@ -20,7 +20,7 @@
widget: "string"
},
],
- pattern: /{{< gallery dir="([a-zA-Z0-9]+)" >}}/,
+ pattern: /{{< gallery dir=([a-zA-Z0-9]+) />}}/,
fromBlock: function(match) {
return {
username: dir[1],