Fix RIGHT$
This commit is contained in:
1 parent
ed85733345
commit
694f4736df
1 file changed
+5
-1
@@ -1226,12 +1226,16 @@ class BuiltinFunction
|
||||
{
|
||||
if (len >= str.length)
|
||||
{
|
||||
return str[0..$];
|
||||
return str;
|
||||
}
|
||||
return str[0..len];
|
||||
}
|
||||
static wstring RIGHT(wstring str, int len)
|
||||
{
|
||||
if (len >= str.length)
|
||||
{
|
||||
return str;
|
||||
}
|
||||
return str[$ - len..$];
|
||||
}
|
||||
static wstring SUBST(wstring str, int i, Value alen, DefaultValue!(Value,false) areplace)
|
||||
|
||||
Reference in new issue
Block a user