Major code base cleanup #12

Merged
TopchetoEU merged 35 commits from TopchetoEU/cleanup into master 2024-01-06 16:28:11 +00:00
Showing only changes of commit 2c634778c3 - Show all commits

View File

@ -37,14 +37,14 @@ public class StringLib {
if (i < 0) i += len; if (i < 0) i += len;
if (clamp) { if (clamp) {
if (i < 0) i = 0; if (i < 0) i = 0;
if (i >= len) i = len; if (i > len) i = len;
} }
return i; return i;
} }
@Expose(type = ExposeType.GETTER) @Expose(type = ExposeType.GETTER)
public static int __length(Arguments args) { public static int __length(Arguments args) {
return passThis(args, "substring").length(); return passThis(args, "length").length();
} }
@Expose public static String __substring(Arguments args) { @Expose public static String __substring(Arguments args) {