From 6099a30f7912a76a243c0a24dc7cb2a2d1b2c2ec Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 12 Apr 2026 23:16:09 -0400 Subject: [PATCH] fix(renovate): refine rust-toolchain channel regex Update renovate-config.json5 matchStrings for rust-toolchain to use (?:^|\r?\n) at the start and a lookahead (?=$|\r?\n) at the end. This makes the regex match "channel = \"...\"" lines whether they appear at the start of the file or after a newline and correctly anchors the match to line boundaries, improving handling of Unix/Windows newlines. --- renovate-config.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate-config.json5 b/renovate-config.json5 index 2fb70834..b88c52f3 100644 --- a/renovate-config.json5 +++ b/renovate-config.json5 @@ -108,7 +108,7 @@ "customType": "regex", "managerFilePatterns": ["/(^|\/)rust-toolchain.toml$/"], "matchStrings": [ - "^channel[ \\t]*=[ \\t]*\"(?[^\"\\r\\n]+)\"[ \\t]*(?:$|\\r?\\n)", + "(?:^|\\r?\\n)channel[ \\t]*=[ \\t]*\"(?[^\"\\r\\n]+)\"[ \\t]*(?=$|\\r?\\n)", ], "datasourceTemplate": "github-tags", "depNameTemplate": "rust-lang/rust",