luaur-require 0.1.2

Require-by-string module resolution for Luau (Rust).
Documentation
1
2
3
4
5
6
pub fn split_path(path: &str) -> (&str, &str) {
    match path.find('/') {
        Some(pos) => (&path[..pos], &path[pos + 1..]),
        None => (path, ""),
    }
}