You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm checking if given path in config file is absolute or relative. It works great however not when ~ is used. Then it returns false.
Here is my code
importpathfrom'path';path.isAbsolute('/var/www/index.html');// truepath.isAbsolute('./index.html');// falsepath.isAbsolute('~/Documents/test.json');// false - THIS IS BAD
The text was updated successfully, but these errors were encountered:
I'm checking if given path in config file is absolute or relative. It works great however not when
~
is used. Then it returns false.Here is my code
The text was updated successfully, but these errors were encountered: