Open MysteryBlokHed opened 3 years ago
This following code from files::get_namespace uses the following code to get a path that ends with the namespace folder:
files::get_namespace
https://github.com/MysteryBlokHed/databind/blob/6d36a856e2236c2792fb1fae744151fbf8006cce/src/lib/files.rs#L62-L68
Because of the .split("functions"), the first instance of functions in the path is split. This is a problem if any part of the path contains the word functions.
.split("functions")
functions
This following code from
files::get_namespace
uses the following code to get a path that ends with the namespace folder:https://github.com/MysteryBlokHed/databind/blob/6d36a856e2236c2792fb1fae744151fbf8006cce/src/lib/files.rs#L62-L68
Because of the
.split("functions")
, the first instance offunctions
in the path is split. This is a problem if any part of the path contains the wordfunctions
.