Skip to content

FIX Correct hex escape pattern in i18nTextCollector#11991

Merged
blueo merged 1 commit into
silverstripe:6.2from
creative-commoners:pulls/6.2/fix-pcre
Jun 23, 2026
Merged

FIX Correct hex escape pattern in i18nTextCollector#11991
blueo merged 1 commit into
silverstripe:6.2from
creative-commoners:pulls/6.2/fix-pcre

Conversation

@emteknetnz

@emteknetnz emteknetnz commented Jun 18, 2026

Copy link
Copy Markdown
Member

Issue #11990

A regex typo (\x instead of x) meant to match \xNN hex escapes in _t() strings actually told PCRE to parse a hex code, which newer PCRE2 (10.43+) rejects as a hard compile error -- crashing text collection. Dropping the backslash matches a plain literal x, which is valid in every PCRE version, so it's fully backwards-compatible.

@emteknetnz emteknetnz marked this pull request as ready for review June 18, 2026 06:19
@blueo blueo merged commit 3a41d51 into silverstripe:6.2 Jun 23, 2026
14 checks passed
@emteknetnz emteknetnz deleted the pulls/6.2/fix-pcre branch June 23, 2026 22:20
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.

3 participants