Skip to content

Commit 8fe4742

Browse files
lbussellCopilot
andauthored
Ensure LcuVariablePattern doesn't match too many pipe characters
Co-authored-by: Copilot <[email protected]>
1 parent 4ddc432 commit 8fe4742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/update-dependencies/LcuVariableUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public LcuVariableUpdater()
3737
/// where version contains digits and periods. Examples:
3838
/// "lcu|ltsc2019|4.8", "lcu|ltsc2022|3.5".
3939
/// </summary>
40-
[GeneratedRegex(@"lcu\|.*\|\d+(\.\d+)+?")]
40+
[GeneratedRegex(@"lcu\|[^|]+\|\d+(\.\d+)+?")]
4141
private partial Regex LcuVariablePattern { get; }
4242

4343
/// <inheritdoc/>

0 commit comments

Comments
 (0)