Skip to content

Commit

Permalink
Address codeql finding
Browse files Browse the repository at this point in the history
Address Inefficient regular expression
  • Loading branch information
ChadKillingsworth committed Jan 12, 2023
1 parent 2028b38 commit 1bf6c23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
17 changes: 0 additions & 17 deletions build-scripts/version-match.js

This file was deleted.

3 changes: 2 additions & 1 deletion test/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ const compilerPackage = require('google-closure-compiler');
const Compiler = compilerPackage.compiler;
const packageInfo = require('../package.json');
const Semver = require('semver');
const compilerVersionMatch = require('../build-scripts/version-match');
const spawn = require('child_process').spawnSync;
require('mocha');

const compilerVersionMatch = /^Version: v(\d+)(?:[-\.][a-z0-9][-a-z0-9]*)*$/m;

process.on('unhandledRejection', e => { throw e; });

const assertError = new should.Assertion('compiler version');
Expand Down

0 comments on commit 1bf6c23

Please sign in to comment.