Permalink
Browse files

fix #396. Raise error when there is no matching quote. (#477)

  • Loading branch information...
1 parent ab3002a commit 4fad99257e507f2e2895c4860de71cb8f40d6b70 @rebornix rebornix committed with sergeche Dec 15, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/parser/css.js
View
@@ -201,6 +201,8 @@ define(function(require, exports, module) {
// end of line with no \ escape = bad
raiseError("Unterminated string");
}
+ } else if (c === '') {
+ raiseError("Unterminated string");
} else {
if (c === "\\") {
token += c + w.nextChar();

0 comments on commit 4fad992

Please sign in to comment.