Update preview on keystroke

Also removes need to check for unfinished html comments
This commit is contained in:
Berkeley Martinez
2015-11-23 23:47:14 -08:00
parent e8d9e31a47
commit 159b202940
3 changed files with 28 additions and 17 deletions

View File

@ -60,20 +60,6 @@ window.common = (function(global) {
});
}
if (common.challengeType === '0') {
let openingComments = code.match(/\<\!\-\-/gi);
let closingComments = code.match(/\-\-\>/gi) || [];
if (
openingComments &&
openingComments.length > closingComments.length
) {
return Observable.throw({
err: 'SyntaxError: Unfinished HTML comment',
code
});
}
}
if (code.match(detectUnsafeConsoleCall)) {
return Observable.throw({
err: 'Invalid if (null) console.log(1); detected',