Merge pull request #507 from mb64/master

No longer uses deprecated string.removechars
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2017-08-03 12:10:57 +02:00 committed by GitHub
commit cee82acabd
1 changed files with 3 additions and 2 deletions

View File

@ -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')