Skip to content

Commit

Permalink
fix: python requirements parse pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Jun 10, 2022
1 parent bafa9f9 commit d79a352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/python/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"strings"
)

var pyRequirementsPattern = regexp.MustCompile("^([A-Za-z0-9_-]+) *== *([^= \\n\\r]+)$")
var pyRequirementsPattern = regexp.MustCompile("^([A-Za-z0-9_-]+) *.?= *([^= \\n\\r]+)$")
var pyImportPattern1 = regexp.MustCompile("import\\s+(?:[A-Za-z_-][A-Za-z_0-9.-]*)(?:\\s*,\\s*(?:[A-Za-z_-][A-Za-z_0-9.-]*))")
var pyImportPattern2 = regexp.MustCompile("from\\s+([A-Za-z_-][A-Za-z_0-9-]*)")

Expand Down

0 comments on commit d79a352

Please sign in to comment.