Browse Source

Fixed html block tags with numbers in name, closes #74

pull/82/head
Vitaly Puzrin 10 years ago
parent
commit
d4fe12a6ec
  1. 4
      lib/rules_block/html_block.js

4
lib/rules_block/html_block.js

@ -6,8 +6,8 @@
var block_names = require('../common/html_blocks'); var block_names = require('../common/html_blocks');
var HTML_TAG_OPEN_RE = /^<([a-zA-Z]{1,15})[\s\/>]/; var HTML_TAG_OPEN_RE = /^<([a-zA-Z][a-zA-Z0-9]{0,14})[\s\/>]/;
var HTML_TAG_CLOSE_RE = /^<\/([a-zA-Z]{1,15})[\s>]/; var HTML_TAG_CLOSE_RE = /^<\/([a-zA-Z][a-zA-Z0-9]{0,14})[\s>]/;
function isLetter(ch) { function isLetter(ch) {
/*eslint no-bitwise:0*/ /*eslint no-bitwise:0*/

Loading…
Cancel
Save