Skip to content

Commit

Permalink
Merge pull request #3 from kazu69/fixed_bug_only_match_ending_tag
Browse files Browse the repository at this point in the history
Fixed bug only match ending tag
  • Loading branch information
kazu69 committed Nov 8, 2015
2 parents 4311517 + c989865 commit 3bce865
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-htmlhint-inline",
"description": "Grunt plugin for linting inline html",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "https://github.com/kazu69/grunt-htmlhint-inline",
"main": "tasks/htmlhint-inline.js",
"author": {
Expand Down
3 changes: 1 addition & 2 deletions tasks/lib/inlinehint.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function removeTags(src, ignores) {
lines[i] = '';
}
else if(stops) {
lines[i] = '';
if(tagSection) { lines[i] = ''; }
tagSection = false;
}

Expand Down Expand Up @@ -66,7 +66,6 @@ function createTemporaryFiles(files, ignores, patterns) {

if(ignores) source = removeTags(source, ignores);
if(patterns) source = removePatterns(source, patterns);

if (/^\s*$/.test(source)) return;

fs.writeFileSync(tempFile, source);
Expand Down

0 comments on commit 3bce865

Please sign in to comment.