Skip to content

Commit 9473f50

Browse files
authored
Update to the latest version of moment.js to resolve CG (#9212)
1 parent b7421a3 commit 9473f50

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# on specific relative paths.
66
**/Scripts/gallery/jquery-3.4.1.js
77
**/Scripts/gallery/knockout-3.5.1.js
8-
**/Scripts/gallery/moment-2.29.2.js
8+
**/Scripts/gallery/moment-2.29.4.js

src/NuGetGallery/App_Start/AppActivator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private static void BundlingPostStart()
134134
.Include("~/Scripts/gallery/jquery.validate.unobtrusive-3.2.6.js")
135135
.Include("~/Scripts/gallery/knockout-3.5.1.js")
136136
.Include("~/Scripts/gallery/bootstrap.js")
137-
.Include("~/Scripts/gallery/moment-2.29.2.js")
137+
.Include("~/Scripts/gallery/moment-2.29.4.js")
138138
.Include("~/Scripts/gallery/common.js")
139139
.Include("~/Scripts/gallery/autocomplete.js");
140140
BundleTable.Bundles.Add(scriptBundle);

src/NuGetGallery/NuGetGallery.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,7 @@
17061706
<Content Include="App_Data\Files\Content\Symbols-Configuration.json" />
17071707
<Content Include="Scripts\gallery\instrumentation.js" />
17081708
<Content Include="Scripts\gallery\knockout-3.5.1.js" />
1709+
<Content Include="Scripts\gallery\moment-2.29.4.js" />
17091710
<Content Include="Scripts\gallery\page-list-packages.js" />
17101711
<Content Include="Scripts\gallery\syntaxhighlight.js" />
17111712
<Content Include="Views\Shared\SiteMenu.cshtml">
@@ -1863,7 +1864,6 @@
18631864
<Content Include="Scripts\gallery\jquery.validate.unobtrusive-3.2.6.js" />
18641865
<Content Include="Scripts\gallery\knockout-projections.js" />
18651866
<Content Include="Scripts\gallery\md5.js" />
1866-
<Content Include="Scripts\gallery\moment-2.29.2.js" />
18671867
<Content Include="Scripts\gallery\page-about.js" />
18681868
<Content Include="Scripts\gallery\page-account.js" />
18691869
<Content Include="Scripts\gallery\page-add-organization.js" />
@@ -2271,7 +2271,7 @@
22712271
<Version>2.8.3</Version>
22722272
</PackageReference>
22732273
<PackageReference Include="Moment.js">
2274-
<Version>2.29.2</Version>
2274+
<Version>2.29.4</Version>
22752275
</PackageReference>
22762276
<PackageReference Include="MvcTreeView">
22772277
<Version>1.4.0</Version>

src/NuGetGallery/Scripts/gallery/moment-2.29.2.js renamed to src/NuGetGallery/Scripts/gallery/moment-2.29.4.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! moment.js
2-
//! version : 2.29.2
2+
//! version : 2.29.4
33
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
44
//! license : MIT
55
//! momentjs.com
@@ -2454,7 +2454,7 @@
24542454
function preprocessRFC2822(s) {
24552455
// Remove comments and folding whitespace and replace multiple-spaces with a single space
24562456
return s
2457-
.replace(/\([^)]*\)|[\n\t]/g, ' ')
2457+
.replace(/\([^()]*\)|[\n\t]/g, ' ')
24582458
.replace(/(\s\s+)/g, ' ')
24592459
.replace(/^\s\s*/, '')
24602460
.replace(/\s\s*$/, '');
@@ -5635,7 +5635,7 @@
56355635

56365636
//! moment.js
56375637

5638-
hooks.version = '2.29.2';
5638+
hooks.version = '2.29.4';
56395639

56405640
setHookCallback(createLocal);
56415641

tests/NuGetGallery.FunctionalTests/StaticAssets/StaticAssetsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public StaticAssetsTests(ITestOutputHelper testOutputHelper) : base(testOutputHe
6767
"Scripts/gallery/jquery.validate.unobtrusive-3.2.6.js",
6868
"Scripts/gallery/knockout-3.4.2.js",
6969
"Scripts/gallery/bootstrap.js",
70-
"Scripts/gallery/moment-2.29.2.js",
70+
"Scripts/gallery/moment-2.29.4.js",
7171
"Scripts/gallery/common.js",
7272
"Scripts/gallery/autocomplete.js",
7373
}

0 commit comments

Comments
 (0)