diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cc955c..10bd406 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] +### Changed +- We are now using SHA256 instead of djb2hash ### Added - URL parameter to points.json to allow returning only the JSON for a single team by its team id (e.g., points.json?id=abc123). @@ -13,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - add_script_stream convenience function allows easy script addition to puzzle - Autobuild Docker images to test buildability - Extract and use X-Forwarded-For headers in mothd logging +- Mothballs can now specify `X-Answer-Pattern` header fields, which allow `*` + at the beginning, end, or both, of an answer. This is `X-` because we + are hoping to change how this works in the future. ### Fixed - Handle cases where non-legacy puzzles don't have an `author` attribute - Handle YAML-formatted file and script lists as expected diff --git a/theme/puzzle.js b/theme/puzzle.js index 6eb5896..7ffbd61 100644 --- a/theme/puzzle.js +++ b/theme/puzzle.js @@ -215,8 +215,8 @@ function answerCheck(e) { possiblyCorrect(answer) .then (correct => { + document.querySelector("[name=xAnswer").value = correct || answer if (correct) { - document.querySelector("[name=xAnswer").value = correct ok.textContent = "⭕" ok.title = "Possibly correct" } else {