Skip to content

Commit

Permalink
Fix stripStr on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Jan 1, 2020
1 parent 7b20b19 commit 5057685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pep508.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let
substr = start: stop: s: builtins.substring start (stop - start) s;

# Strip leading/trailing whitespace from string
stripStr = s: lib.elemAt (builtins.split "^ *| *$" s) 2;
stripStr = s: lib.elemAt (builtins.split "^ *" (lib.elemAt (builtins.split " *$" s) 0)) 2;

findSubExpressionsFun = acc: c: (
if c == "(" then (
Expand Down

0 comments on commit 5057685

Please sign in to comment.