Skip to content

Commit

Permalink
Minor lint tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Dec 6, 2019
1 parent 85ce7fc commit d78bd56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion routes/appendLocals.js
Expand Up @@ -54,7 +54,6 @@ function generateSRI(file) {
return SRI_CACHE[file];
}


function appendLocals(req, res) {
const siteUrl = getCurrentSiteurl(req);
const pageUrl = req.originalUrl;
Expand Down
2 changes: 1 addition & 1 deletion test/functional_test.js
Expand Up @@ -362,7 +362,7 @@ describe('functional', () => {

// ignore twitter-bootstrap versions after 2.3.2
if (uri.includes('twitter-bootstrap')) {
const m = uri.match(/(\d+\.\d+\.\d+)/);
const m = uri.match(/\d+\.\d+\.\d+/);

// err on the side of testing things that can't be abstracted
if (m && m[1] && semver.valid(m[1]) && semver.gt(m[1], '2.3.2')) {
Expand Down

0 comments on commit d78bd56

Please sign in to comment.