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
Line 35 in lib/emfrp/interpreter/file_loader.rb checks that the argument is an absolute path by using Regexp.
It assumes that any absolute paths start with "/", but at least on Windows it is not valid.
The code should be simpler and more meaningful if using File#absolute_path? instead of regexp matching.
The text was updated successfully, but these errors were encountered:
chiguri
added a commit
to chiguri/emfrp
that referenced
this issue
Feb 26, 2021
Line 35 in lib/emfrp/interpreter/file_loader.rb checks that the argument is an absolute path by using Regexp.
It assumes that any absolute paths start with "/", but at least on Windows it is not valid.
The code should be simpler and more meaningful if using File#absolute_path? instead of regexp matching.
The text was updated successfully, but these errors were encountered: