Skip to content

Commit

Permalink
Merge pull request #1834 from Martii/someDepUpdates
Browse files Browse the repository at this point in the history
Some dep updates and enhancements
  • Loading branch information
Martii authored Aug 18, 2021
2 parents 6cc6923 + 60b0ee0 commit f0da9df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions libs/modelParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ var parseComment = function (aComment) {

comment.ua = {};
comment.ua.raw = comment.userAgent;
ua = useragent.parse(comment.userAgent).family.toLowerCase().replace(/\s+/g, '-');
ua = useragent.parse(comment.userAgent).family.toLowerCase().replace(/[^a-zA-Z0-9]+/g, '-');
if (ua !== 'other') {
comment.ua.class = 'fa-lg ua-' + ua;
} else if (comment.userAgent) {
Expand Down Expand Up @@ -1172,7 +1172,7 @@ var parseSession = function (aSession) {

oujsOptions.remoteAddressMask = oujsOptions.remoteAddress;
oujsOptions.userAgentFamily = useragent
.parse(oujsOptions.userAgent).family.toLowerCase().replace(/[\s\/]+/g, '-');
.parse(oujsOptions.userAgent).family.toLowerCase().replace(/[^a-zA-Z0-9]+/g, '-');
parseDateProperty(oujsOptions, 'since');

cookie.sameSiteStrict = cookie.sameSite === 'strict';
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"dependencies": {
"ace-builds": "1.4.12",
"ansi-colors": "4.1.1",
"async": "3.2.0",
"async": "3.2.1",
"@octokit/auth-oauth-app": "4.3.0",
"aws-sdk": "2.944.0",
"aws-sdk": "2.971.0",
"body-parser": "1.19.0",
"bootstrap": "3.4.1",
"bootstrap-markdown": "2.10.0",
Expand All @@ -25,21 +25,21 @@
"git-rev": "0.2.1",
"git-rev-sync": "3.0.1",
"github": "git://github.com/octokit/rest.js.git#29dedb3",
"highlight.js": "11.1.0",
"highlight.js": "11.2.0",
"image-size": "1.0.0",
"ip-range-check": "0.2.0",
"jquery": "3.6.0",
"js-beautify": "1.14.0",
"jsdom": "16.6.0",
"jsdom": "17.0.0",
"less-middleware": "3.1.0",
"marked": "2.1.3",
"media-type": "0.3.1",
"method-override": "3.0.0",
"mime-db": "1.48.0",
"mime-db": "1.49.0",
"moment": "2.29.1",
"moment-duration-format": "2.3.2",
"mongodb": "3.6.10",
"mongoose": "5.13.2",
"mongodb": "3.6.11",
"mongoose": "5.13.7",
"morgan": "1.10.0",
"mu2": "0.5.21",
"octicons": "4.4.0",
Expand Down

0 comments on commit f0da9df

Please sign in to comment.