less strict tutorial regex for <h1></h1>

This commit is contained in:
Kyle Drake 2025-01-16 13:07:37 -06:00
parent 1bddcd4cfb
commit 92902696ab

View file

@ -25,7 +25,7 @@
function checkHomework() {
var html = editor.getValue()
if(!html.match(/<h1>\S.+<\/h1>/)) {
if(!html.match(/<h1>.+<\/h1>/)) {
notok("That doesn't look like a header! Try again.")
} else {
sessionStorage.setItem('tutorialHtml', html)