Skip to content

Commit 79dff14

Browse files
authored
Merge pull request #2 from exdis/tag-name-regexp-fix
Поправил регулярку для имени тегов, чтобы учитывались h1-9
2 parents fbfdceb + cb72f59 commit 79dff14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ yr.isShort = function( name ) {
304304
);
305305
};
306306

307-
var rx_tagName = /[^a-zA-Z]/g;
307+
var rx_tagName = /[^a-zA-Z0-9]/g;
308308
yr.tagName = function(name) {
309309
if (!name) {
310310
return 'div';

0 commit comments

Comments
 (0)