MysteryBlokHed / databind

Expand the functionality of Minecraft Datapacks.
https://databind.rtfd.io/en/stable
GNU General Public License v3.0
4 stars 0 forks source link

Can't tag functions if project name contains `functions` #140

Open MysteryBlokHed opened 3 years ago

MysteryBlokHed commented 3 years ago

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 of functions in the path is split. This is a problem if any part of the path contains the word functions.

MysteryBlokHed commented 3 years ago

141 did not fix this issue and was reverted in 4a762fd5966f48b7669af90e58fa50d9113c69b7.