Skip to content

Commit

Permalink
Fix the check for minimum node version (#315)
Browse files Browse the repository at this point in the history
* fix the min supported node version check

* update run.n

* fix the node version parts check

* generate run.n
  • Loading branch information
ninjamuffin99 authored Sep 1, 2024
1 parent d600a8f commit 3eac1d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified run.n
Binary file not shown.
2 changes: 1 addition & 1 deletion src/dox/Dox.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Dox {
output = output.substr(1); // remove leading "v"
var parts = output.split(".").map(Std.parseInt);
// min supported node version is 8.10.0 due to usage of regex dotall flag
isValidNode = parts[0] >= 8 && parts[1] >= 10;
isValidNode = parts[0] > 8 || parts[0] == 8 && parts[1] >= 10;
}
process.close();
if (isValidNode && FileSystem.exists("run.js")) {
Expand Down

0 comments on commit 3eac1d9

Please sign in to comment.