Fix mistake for unicode

This commit is contained in:
Enyby
2018-07-04 22:26:08 +03:00
committed by GitHub
parent b5a2bd6bbe
commit 7148b71e56

View File

@@ -392,8 +392,7 @@ public class StringLib extends TwoArgFunction {
zeroPad &= !leftAdjust; // '-' overrides '0'
conversion = c;
length = p - start;
String str = strfrmt.tojstring();
src = str.substring(start - 1, p);
src = strfrmt.substring(start - 1, p).tojstring();
}
public void format(Buffer buf, byte c) {