No longer uses deprecated string.removechars
This commit is contained in:
parent
a916a64fb7
commit
e7ea632ea4
|
@ -141,9 +141,10 @@ private:
|
|||
long parseNumber(string te)
|
||||
{
|
||||
import std.conv : to;
|
||||
import std.string : removechars;
|
||||
import std.regex : ctRegex, replaceAll;
|
||||
|
||||
string t = te.removechars("_uUlL");
|
||||
enum re = ctRegex!("[_uUlL]", "");
|
||||
string t = te.replaceAll(re, "");
|
||||
if (t.length > 2)
|
||||
{
|
||||
if (t[1] == 'x' || t[1] == 'X')
|
||||
|
|
Loading…
Reference in New Issue