Repository navigation
Conversation
… long runs of "<"
This was referenced Nov 26, 2026
Contributor
Author
|
Combined into #2089 with the same commits. |
jm1021
pushed a commit
that referenced
this pull request
Nov 26, 2026
…of "<" Branch fix/calendar-tag-link-regex, head a22e0d5.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Like #2068 did for linked docs, this keeps two more regexes that scan event text from slowing a page down. Any signed-in account can write that text.
What users see:
<before a tag keeps it now.x < y <b>bold</b>shows asx < y boldin the ticker (main showedx bold).<in its text, like<https://a.b|x < y>, isn't made a link anymore, and the event window then drops it as an unknown tag (main showed a link readingx < y). Slack writes<in link text as<, so links from Slack don't change.What changed:
&) with the regexTAGin_projects/systems/courses/js/announcement-calendar/calendar-ticker.js. It went from each<to the next>, so after a closing tag, a long run of<with no>got scanned to the end again from every<.slackToHtmlon the calendar page (_projects/systems/calendar/index.md) turns<url|text>into links when you open an event. Its link regex did the same with a description full of<http:links that never close.<as well as at>:<[^>]*>became<[^<>]*>, and the link regex's two parts stop at<too.Other notes:
varchar(255), which MySQL enforces but SQLite doesn't, Spring's code doesn't check the length, and Spring's README says production is on SQLite right now.<,>, entities and words) and 500,000 random descriptions (built from Slack links,|,>,<,*,_,~, backticks and words). Every difference was one of the two cases above.</b>and 100,000<, another a description of 30,000<http:alinks that never close. One run each._projects/systems/courses/tests/calendar_ticker.test.mjshas one for the title, and the new_projects/systems/calendar/tests/slack_text.test.mjsreadsslackToHtmlout ofindex.mdand runs it (the files intests/import them). On main they took over a second each and failed their 200 ms limit. Now they take a few milliseconds.<) to the calendar part ofAGENTS.mdandAGENTS_MD_DOCUMENTATION.md.How to try it:
fix/calendar-tag-link-regexfromsvaka2000/Pages-JJ.node --test tests/calendar_ticker.test.mjs tests/calendar_slack_text.test.mjs tests/calendar_doc_links.test.mjs tests/calendar_safe_html.test.mjs. It passes in under a second.