A D package containing my single-file modules
| Revision | a534673f46f8d10c65a5b7e76fcdc51e1390e214 (tree) |
|---|---|
| Time | 2023-12-31 08:45:47 |
| Author | mio <stigma@disr...> |
| Commiter | mio |
search_params: small fix
| @@ -124,6 +124,8 @@ private string percentEncode(string input, char[] encodeSet, bool spaceAsPlus) | ||
| 124 | 124 | } |
| 125 | 125 | if (canFind(encodeSet, c)) { |
| 126 | 126 | output.writef("%%%02X", c); |
| 127 | + } else if (c > '\u007E') { | |
| 128 | + output.writef("%%%02X", c); | |
| 127 | 129 | } else { |
| 128 | 130 | output.write(c); |
| 129 | 131 | } |
| @@ -545,7 +547,6 @@ package(mlib): | ||
| 545 | 547 | override public string toString() const @trusted pure |
| 546 | 548 | { |
| 547 | 549 | import std.outbuffer : OutBuffer; |
| 548 | - import std.uri : encodeComponent; | |
| 549 | 550 | |
| 550 | 551 | auto output = new OutBuffer(); |
| 551 | 552 | bool appended = false; |