Open spalberg opened 11 months ago
Hi Sven, appreciate your feedback, I will need some time to test again in a Windows system, but fell free to contribute with a PR!
Currently working on the PR, see https://github.com/spalberg/deno_kill_port The tests run locally using linux and windows but somehow not in the CI. Might fix that tomorrow.
When trying to kill a process for windows with the system language set to german, the library does not work.
This seems to be related to the output format of
netstat
, i.e.:which leads this line to evaluate to:
Since windows changes even the output of system utilities like
netstat
dependent on the system language I'm not sure if the regex is broken everywhere or just for certain languages. Do you have a windows system where the regex works for thenetstat
output?I'd also be willing to create a PR with a more resilient regex if this is the case.