mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
Clean up code
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user