Skip to content

Commit

Permalink
fix: Allow for ~= in addition to == and >= version constraint in requ…
Browse files Browse the repository at this point in the history
…irements.txt and pipfile

Fixes #5898
  • Loading branch information
aikebah committed Aug 27, 2023
1 parent 4446f2b commit ab35d98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class PipAnalyzer extends AbstractFileTypeAnalyzer {
/**
* o * Matches AC_INIT variables in the output configure script.
*/
private static final Pattern PACKAGE_VERSION = Pattern.compile("^([^#].*?)(?:[=>]=([\\.\\*0-9]+?))?$", Pattern.MULTILINE);
private static final Pattern PACKAGE_VERSION = Pattern.compile("^([^#].*?)(?:[=~>]=([\\.\\*0-9]+?))?$", Pattern.MULTILINE);

/**
* The file filter used to determine which files this analyzer supports.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class PipfileAnalyzer extends AbstractFileTypeAnalyzer {
/**
* o * Matches AC_INIT variables in the output configure script.
*/
private static final Pattern PACKAGE_VERSION = Pattern.compile("^([^#].*?) = \"(?:[=>]=([\\.\\*0-9]+?))?\"$", Pattern.MULTILINE);
private static final Pattern PACKAGE_VERSION = Pattern.compile("^([^#].*?) = \"(?:[=~>]=([\\.\\*0-9]+?))?\"$", Pattern.MULTILINE);

/**
* The file filter used to determine which files this analyzer supports.
Expand Down

0 comments on commit ab35d98

Please sign in to comment.