Skip to content

fix(submission): count the same titles as blank as the submit view - #3913

Merged
Chartman123 merged 1 commit into
mainfrom
fix/submission-blank-titles
Nov 18, 2026
Merged

Chartman123 merged 1 commit into
mainfrom
fix/submission-blank-titles

Conversation

@AndyScherzinger

Copy link
Copy Markdown
Member

Split out of #3833, so it can be merged and backported on its own. The commit is unchanged and drops out of #3833 once this is merged.

  • A question title made only of U+0085 (next line) or U+180E (Mongolian vowel separator) counted as blank on the server, as \s matches them in Unicode mode, while the submit view shows such a question, as JavaScript's trim() keeps both. The server now counts exactly the characters as blank that trim() removes, so a required question with such a title needs an answer, as in the submit view.

Tests

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

A question title made only of U+0085 (next line) or U+180E (Mongolian
vowel separator) counted as blank on the server, as \s matches them in
Unicode mode, while the submit view shows such a question, as
JavaScript's trim() keeps both. The server now counts exactly the
characters as blank that trim() removes, so a required question with
such a title needs an answer, as in the submit view.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger AndyScherzinger added this to the 5.5 milestone Nov 18, 2026
@AndyScherzinger AndyScherzinger added bug Something isn't working 3. to review Waiting for reviews AI assisted labels Nov 18, 2026
@AndyScherzinger AndyScherzinger self-assigned this Nov 18, 2026
@AndyScherzinger

Copy link
Copy Markdown
Member Author

/backport! to stable5.4

@backportbot backportbot Bot added the backport-request Pending backport by the backport-bot label Nov 18, 2026
@backportbot backportbot Bot removed the backport-request Pending backport by the backport-bot label Nov 18, 2026
@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Chartman123
Chartman123 merged commit c5c78f7 into main Nov 18, 2026
51 checks passed
@Chartman123
Chartman123 deleted the fix/submission-blank-titles branch November 18, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants