Skip to content

Commit

Permalink
Update to the latest version of moment.js to resolve CG (#9212)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelverhagen committed Aug 26, 2022
1 parent b7421a3 commit 9473f50
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# on specific relative paths.
**/Scripts/gallery/jquery-3.4.1.js
**/Scripts/gallery/knockout-3.5.1.js
**/Scripts/gallery/moment-2.29.2.js
**/Scripts/gallery/moment-2.29.4.js
2 changes: 1 addition & 1 deletion src/NuGetGallery/App_Start/AppActivator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private static void BundlingPostStart()
.Include("~/Scripts/gallery/jquery.validate.unobtrusive-3.2.6.js")
.Include("~/Scripts/gallery/knockout-3.5.1.js")
.Include("~/Scripts/gallery/bootstrap.js")
.Include("~/Scripts/gallery/moment-2.29.2.js")
.Include("~/Scripts/gallery/moment-2.29.4.js")
.Include("~/Scripts/gallery/common.js")
.Include("~/Scripts/gallery/autocomplete.js");
BundleTable.Bundles.Add(scriptBundle);
Expand Down
4 changes: 2 additions & 2 deletions src/NuGetGallery/NuGetGallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,7 @@
<Content Include="App_Data\Files\Content\Symbols-Configuration.json" />
<Content Include="Scripts\gallery\instrumentation.js" />
<Content Include="Scripts\gallery\knockout-3.5.1.js" />
<Content Include="Scripts\gallery\moment-2.29.4.js" />
<Content Include="Scripts\gallery\page-list-packages.js" />
<Content Include="Scripts\gallery\syntaxhighlight.js" />
<Content Include="Views\Shared\SiteMenu.cshtml">
Expand Down Expand Up @@ -1863,7 +1864,6 @@
<Content Include="Scripts\gallery\jquery.validate.unobtrusive-3.2.6.js" />
<Content Include="Scripts\gallery\knockout-projections.js" />
<Content Include="Scripts\gallery\md5.js" />
<Content Include="Scripts\gallery\moment-2.29.2.js" />
<Content Include="Scripts\gallery\page-about.js" />
<Content Include="Scripts\gallery\page-account.js" />
<Content Include="Scripts\gallery\page-add-organization.js" />
Expand Down Expand Up @@ -2271,7 +2271,7 @@
<Version>2.8.3</Version>
</PackageReference>
<PackageReference Include="Moment.js">
<Version>2.29.2</Version>
<Version>2.29.4</Version>
</PackageReference>
<PackageReference Include="MvcTreeView">
<Version>1.4.0</Version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! moment.js
//! version : 2.29.2
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
Expand Down Expand Up @@ -2454,7 +2454,7 @@
function preprocessRFC2822(s) {
// Remove comments and folding whitespace and replace multiple-spaces with a single space
return s
.replace(/\([^)]*\)|[\n\t]/g, ' ')
.replace(/\([^()]*\)|[\n\t]/g, ' ')
.replace(/(\s\s+)/g, ' ')
.replace(/^\s\s*/, '')
.replace(/\s\s*$/, '');
Expand Down Expand Up @@ -5635,7 +5635,7 @@

//! moment.js

hooks.version = '2.29.2';
hooks.version = '2.29.4';

setHookCallback(createLocal);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public StaticAssetsTests(ITestOutputHelper testOutputHelper) : base(testOutputHe
"Scripts/gallery/jquery.validate.unobtrusive-3.2.6.js",
"Scripts/gallery/knockout-3.4.2.js",
"Scripts/gallery/bootstrap.js",
"Scripts/gallery/moment-2.29.2.js",
"Scripts/gallery/moment-2.29.4.js",
"Scripts/gallery/common.js",
"Scripts/gallery/autocomplete.js",
}
Expand Down

0 comments on commit 9473f50

Please sign in to comment.