Core: add support to tag-hyphenated elements

Ref #1987
Ref 534f13025a
This commit is contained in:
Leonardo Braga
2015-01-04 17:48:35 -05:00
committed by Oleg Gaidarenko
parent abfb10c82e
commit f19595cef4
2 changed files with 14 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
define(function() {
// Match a standalone tag
return (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);
return (/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/);
});