Skip to content

Commit

Permalink
refactor: use regEx helper
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <[email protected]>
  • Loading branch information
sheerlox and viceice authored Dec 30, 2024
1 parent a20f8d7 commit 6f7cbc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/manager/mix/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const lockedVersionRegExp = regEx(
/^\s+"(?<app>\w+)".*?"(?<lockedVersion>\d+\.\d+\.\d+)"/,
);
const hexRegexp = regEx(/hex:\s*(?:"(?<strValue>[^"]+)"|:(?<atomValue>\w+))/);
const onlyValueRegexp = /only:\s*(?<only>\[[^\]]*\]|:\w+)/;
const onlyEnvironmentsRegexp = /:(\w+)/gm;
const onlyValueRegexp = regEx(/only:\s*(?<only>\[[^\]]*\]|:\w+)/);
const onlyEnvironmentsRegexp = regEx(/:(\w+)/gm);

export async function extractPackageFile(
content: string,
Expand Down

0 comments on commit 6f7cbc4

Please sign in to comment.