Skip to content

[3.0] Ensures trailing chars are correctly quoted in Utils::buildRegex() - #9318

Merged
Sesquipedalian merged 1 commit into
SimpleMachines:release-3.0from
Sesquipedalian:3.0/buildRegex_trailing_quoted
Jul 29, 2026
Merged

Sesquipedalian merged 1 commit into
SimpleMachines:release-3.0from
Sesquipedalian:3.0/buildRegex_trailing_quoted

Conversation

@Sesquipedalian

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Jon Stovell <jonstovell@gmail.com>
@Sesquipedalian
Sesquipedalian merged commit 5a0d68c into SimpleMachines:release-3.0 Jul 29, 2026
4 checks passed
@Sesquipedalian
Sesquipedalian deleted the 3.0/buildRegex_trailing_quoted branch July 29, 2026 02:08
@jdarwood007 jdarwood007 added this to the 3.0 Alpha 5 milestone Aug 1, 2026
jdarwood007 pushed a commit that referenced this pull request Aug 28, 2026
SMF has no automated tests. CI proves that the code parses and that it is
formatted; it never executes anything. Every one of the bugs fixed in
#9319 through #9322 parsed cleanly and passed every check.

Quite a lot of 3.0 is reachable without a forum behind it. The bootstrap
here defines the constants index.php would define and points the
autoloader at Sources/, and that is enough: no Settings.php, no database,
no request. Anything that reaches Config::$modSettings, User::$me or
Db::$db is out of scope and belongs in an integration suite.

The first tests cover ground that recently broke:

- ActionTrait::load() returning an instance of the class it was called
  on, in both orders and in two separate class hierarchies.
- CreatePost_Notify::getTimeOffset(), including the half-hour and
  quarter-hour zones that an int cast used to truncate.
- Utils::buildRegex(), including the trailing quoted character from
  #9318.

tests/ is already excluded from the license header check in BuildTools,
and the directory index.php files keep check-smf-index happy.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants