Skip to content

Commit

Permalink
Merge pull request #58 from blumenstiel/main
Browse files Browse the repository at this point in the history
Fix non-alpha chars in requirements file name
  • Loading branch information
romeokienzler authored Apr 3, 2024
2 parents 46cee2e + 1ad3e18 commit 9501971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c3/create_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def create_dockerfile(dockerfile_template, requirements, target_code, target_dir
# Check for requirements file
for i in range(len(requirements)):
if '-r ' in requirements[i]:
r_file_search = re.search('-r ~?\/?([A-Za-z0-9\/]*\.txt)', requirements[i])
r_file_search = re.search('-r ~?\/?([^\s]*\.txt)', requirements[i])
if len(r_file_search.groups()):
# Get file from regex
requirements_file = r_file_search.groups()[0]
Expand Down

0 comments on commit 9501971

Please sign in to comment.