From 742020a597ebf999d570b3d0d3551474342731d6 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 16 Mar 2020 10:20:03 -0600 Subject: [PATCH 1/3] Support insta-checking for legacy puzzles --- theme/puzzle.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/theme/puzzle.js b/theme/puzzle.js index 2c084c6..a9b8cdb 100644 --- a/theme/puzzle.js +++ b/theme/puzzle.js @@ -84,11 +84,11 @@ async function possiblyCorrect(answer) { return answer } for (let end = 0; end <= answer.length; end += 1) { - if (window.puzzle.xAnchors.includes("end") && (end != answer.length)) { + if (window.puzzle.xAnchors && window.puzzle.xAnchors.includes("end") && (end != answer.length)) { continue } for (let beg = 0; beg < answer.length; beg += 1) { - if (window.puzzle.xAnchors.includes("begin") && (beg != 0)) { + if (window.puzzle.xAnchors && window.puzzle.xAnchors.includes("begin") && (beg != 0)) { continue } let sub = answer.substring(beg, end) @@ -266,4 +266,3 @@ if (document.readyState === "loading") { } else { init() } - From a7bfdc8ca6cf71239e6d6fc9dc4e1d1468a51405 Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Mon, 16 Mar 2020 16:31:44 +0000 Subject: [PATCH 2/3] Updating changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c73e46e..519b502 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Support insta-checking for legacy puzzles ## [v3.5.0] - 2020-03-13 ### Changed From 28aac6522769412962f192294c8ad080788f94b9 Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Mon, 16 Mar 2020 16:34:36 +0000 Subject: [PATCH 3/3] Releasing v3.5.1 --- CHANGELOG.md | 2 ++ VERSION | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 519b502..0be1526 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [v3.5.1] - 2020-03-16 ### Fixed - Support insta-checking for legacy puzzles diff --git a/VERSION b/VERSION index 1545d96..d5c0c99 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.5.0 +3.5.1