Merge branch 'plugins' into plugins_dev

This commit is contained in:
Stephen Chung
2020-08-24 08:36:15 +08:00
11 changed files with 627 additions and 309 deletions

View File

@@ -289,7 +289,7 @@ mod string_functions {
}
#[rhai_fn(name = "crop")]
fn crop_string(s: &mut ImmutableString, start: INT, len: INT) {
pub fn crop_string(s: &mut ImmutableString, start: INT, len: INT) {
let offset = if s.is_empty() || len <= 0 {
s.make_mut().clear();
return;