Skip to content

Commit f6ae99c

Browse files
authored
Merge pull request #115480 from MizardX/regex-fixes
Update regex in how-to-rename-azure-ad.md
2 parents bc1b703 + 92fdf17 commit f6ae99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/active-directory/fundamentals/how-to-rename-azure-ad.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ function Update-Terminology {
332332
foreach ($item in $Terminology.GetEnumerator()) {
333333
$old = [regex]::Escape($item.Key)
334334
$new = $item.Value
335-
$toReplace = '(?<!(name=\"[^$]*|https?:\/\/aka.ms/[a-z|0-1]*))' + $($old)
335+
$toReplace = '(?<!(name=\"[^$]{1,100}|https?://aka.ms/[a-z0-9/-]{1,100}))' + $($old)
336336
337337
# Replace the old terminology with the new one
338338
$Content.Value = $Content.Value -replace $toReplace, $new

0 commit comments

Comments
 (0)