Skip to content

Commit

Permalink
Prettify html.erb and scss files
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Stöber-Friedrich committed Feb 15, 2014
1 parent 51203be commit 1d9dcb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/run.js
Expand Up @@ -94,12 +94,14 @@
return path.match(/\.html?$/) ||
path.match(/\.xhtml?$/) ||
path.match(/\.xml$/) ||
path.match(/\.html\.erb$/) ||
(path == "?" && data.match(/^\s*</)); // First non-whitespace character is &lt;
}

function isCSS(path, data) {
return path.match(/\.css$/) ||
path.match(/\.sass$/) ||
path.match(/\.scss$/) ||
path.match(/\.less$/);
}

Expand Down

0 comments on commit 1d9dcb8

Please sign in to comment.