From 938d4f4916e645e4bde63f86af2d4745521aa0d3 Mon Sep 17 00:00:00 2001 From: Sima Zhu Date: Thu, 28 Jan 2021 16:02:19 -0800 Subject: [PATCH] Normalize the package name for Doc.Ms readme --- eng/scripts/Language-Settings.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index b35407cce65e..c450b251779d 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -257,3 +257,9 @@ function GetExistingPackageVersions ($PackageName, $GroupId = $null) return $null } } + +# Turn the package name start with `@azure/identity` to "identity". +function Normalize-javascript-Package-name ($PackageName) +{ + return $PackageName -replace "@azure/" , "" +} \ No newline at end of file