Clean up code

This commit is contained in:
Andrey Sitnik
2015-02-22 18:12:58 +03:00
parent 5eefbd3887
commit 38c86ce006
+2 -2
View File
@@ -19,7 +19,7 @@ var singleQuote = "'".charCodeAt(0),
wordEnd = /[ \n\t\r\(\)\{\}:;@!'"\\]|\/(?=\*)/g,
badBracket = /.[\\\/\("'\n]/;
export default function (input) {
export default function (input) {
var tokens = [];
var css = input.css.valueOf();
@@ -34,7 +34,7 @@ export default function (input) {
var unclosed = function (what, end) {
if ( input.safe ) {
css += end;
next = css.length - 1;
next = length - 1;
} else {
throw input.error('Unclosed ' + what, line, pos - offset);
}