Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta committed Feb 3, 2025
1 parent 0a83ebf commit 8c80bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/util/packageMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function checkDependencies(dependencies: Record<string, string> | Nullish, error
if (updaterVersion != null) {
// Pick the version out of yarn berry patch syntax
// "patch:electron-updater@npm%3A6.4.1#~/.yarn/patches/electron-updater-npm-6.4.1-ef33e6cc39.patch"
if (updaterVersion.startsWith('patch:')) {
if (updaterVersion.startsWith("patch:")) {
const match = updaterVersion.match(/@npm%3A(.+?)#/)

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings starting with '@npm%3A' and with many repetitions of '@npm%3Aa'.
if (match) {
updaterVersion = match[1]
Expand Down

0 comments on commit 8c80bba

Please sign in to comment.