diff --git a/source/dub/internal/utils.d b/source/dub/internal/utils.d index c52fe58..83fb0ab 100644 --- a/source/dub/internal/utils.d +++ b/source/dub/internal/utils.d @@ -361,13 +361,13 @@ bool isIdentChar(dchar ch) { - return ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z' || ch >= '0' && ch <= '9' || ch == '_'; + import std.ascii : isAlphaNum; + return isAlphaNum(ch) || ch == '_'; } string stripDlangSpecialChars(string s) { - import std.array; - import std.uni; + import std.array : appender; auto ret = appender!string(); foreach(ch; s) ret.put(isIdentChar(ch) ? ch : '_');