Skip to content

Commit

Permalink
Support leading v in .node-version
Browse files Browse the repository at this point in the history
  • Loading branch information
nix6839 committed Jun 11, 2024
1 parent a6585e9 commit c53405f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _load(cls, configfiles, verbose=False):

if os.path.exists(".node-version"):
with open(".node-version", "r") as v_file:
setattr(cls, "node", v_file.readlines(1)[0].strip())
setattr(cls, "node", v_file.readline().strip().lstrip("v"))

@classmethod
def _dump(cls):
Expand Down

0 comments on commit c53405f

Please sign in to comment.