Skip to content

Commit 2dee6bb

Browse files
authored
[Eng] Update regex to match submodule x.autorest case insensitively (#28120)
1 parent df74141 commit 2dee6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/BuildScripts/AdaptAutorestModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if ($ModuleRootName -in $rootToParentMap.keys) {
5050

5151
$moduleRootPath = Join-Path $SourceDirectory $ModuleRootName
5252
$subModuleNameTrimmed = $SubModuleName
53-
$subModuleName = Get-ChildItem -Path $moduleRootPath -Directory | Where-Object { $_.Name -match "${subModuleNameTrimmed}\." } | ForEach-Object { $_.Name }
53+
$subModuleName = Get-ChildItem -Path $moduleRootPath -Directory | Where-Object { $_.Name -match "${subModuleNameTrimmed}\.Autorest" } | ForEach-Object { $_.Name }
5454

5555
$parentModulePath = Join-Path $moduleRootPath $parentModuleName
5656
$subModulePath = Join-Path $moduleRootPath $SubModuleName

0 commit comments

Comments
 (0)