Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
14 additions
and 1 deletion.
- +1 −1 src/core/var/rsingleTag.js
- +13 −0 test/unit/core.js
| @@ -1,4 +1,4 @@ | ||
| define(function() { | ||
| // Match a standalone tag | ||
| return (/^<(\w+)\s*\/?>(?:<\/\1>|)$/); | ||
| return (/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/); | ||
| }); |