diff options
| author | gingerBill <bill@gingerbill.org> | 2022-06-01 11:08:19 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-06-01 11:08:19 +0100 |
| commit | ba5f7c4e2af5c82c220b7e1796fde2f026ce4208 (patch) | |
| tree | a91367884bb05eb3f5fe7a476b5e0b5ece497f28 /core/encoding/entity | |
| parent | 487bd3d9424479ffe3fb2638077232dbccafa0cf (diff) | |
Deprecate `a..b` based ranges in favour of `..=`dev-2022-06
Diffstat (limited to 'core/encoding/entity')
| -rw-r--r-- | core/encoding/entity/entity.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/encoding/entity/entity.odin b/core/encoding/entity/entity.odin index db1a5ad0b..e5831a75f 100644 --- a/core/encoding/entity/entity.odin +++ b/core/encoding/entity/entity.odin @@ -231,16 +231,16 @@ xml_decode_entity :: proc(entity: string) -> (decoded: rune, ok: bool) { for len(entity) > 0 { r := entity[0] switch r { - case '0'..'9': + case '0'..='9': val *= base val += int(r - '0') - case 'a'..'f': + case 'a'..='f': if base == 10 { return -1, false } val *= base val += int(r - 'a' + 10) - case 'A'..'F': + case 'A'..='F': if base == 10 { return -1, false } val *= base val += int(r - 'A' + 10) |