From d0094d5abd95d548a123ab4edc0a7cc1ecd02d45 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Fri, 16 Aug 2019 15:19:44 +0800 Subject: [PATCH] Fix registration stride mappings with a non-zero offset. registrations.js would miscalculate the end of the address range in these cases, causing the mapping to be skipped for addresses that we could have handled. This specifically affected German registrations beginning with D-AP through D-AZ and D-BP through D-BZ --- public_html/registrations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/registrations.js b/public_html/registrations.js index 1fab589..1d5c50f 100644 --- a/public_html/registrations.js +++ b/public_html/registrations.js @@ -92,7 +92,7 @@ registration_from_hexid = (function () { mapping.end = mapping.start - mapping.offset + c1 * mapping.s1 + c2 * mapping.s2 + - c3 - mapping.offset; + c3; } else { mapping.end = mapping.start - mapping.offset + (mapping.alphabet.length - 1) * mapping.s1 +