<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/147741?s=20&v=4" /><strong>tomhughes</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6350#issuecomment-3219986394">(openstreetmap/openstreetmap-website#6350)</a></div>
<p dir="auto">I rather think the real problem is the unicode sequence. The ";⚪ " actually consists of:</p>
<ul dir="auto">
<li>U+003B SEMICOLON (encoded as <code class="notranslate">3b</code>)</li>
<li>U+E0020 TAG SPACE (encoded as <code class="notranslate">f3 a0 80 a0</code>)</li>
<li>U+E0020 TAG SPACE (encoded as <code class="notranslate">f3 a0 80 a0</code>)</li>
<li>U+E0020 TAG SPACE (encoded as <code class="notranslate">f3 a0 80 a0</code>)</li>
<li>U+E0020 TAG SPACE (encoded as <code class="notranslate">f3 a0 80 a0</code>)</li>
<li>U+26AA MEDIUM WHITE CIRCLE (encoded as <code class="notranslate">e2 9a aa</code>)</li>
<li>U+0020 SPACE (encoded as <code class="notranslate">20</code>)</li>
</ul>
<p dir="auto">which is 21 bytes but only 7 codepoints or 3 characters as the four TAG SPACE characters have a grapheme break property of EXTEND so they merge with the semicolon and the whole thing only counts as one character.</p>
<p dir="auto">That, along with the MEDIUM WHITE CIRCLE using three bytes but counting as one character means that the whole thing is 268 bytes but only 250 characters or 254 codepoints depending on how you prefer to count.</p>
<p dir="auto">A quick test suggests that ruby's string length counts codepoints hence getting to 254 as the total here.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6350#issuecomment-3219986394">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL3TK7SL6XAPY5FCB33PL3BBAVCNFSM6AAAAACEXOARE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMJZHE4DMMZZGQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOMTIIZYRVM4ZYVWWL3PL3BBA5CNFSM6AAAAACEXOARE6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTV75UL5U.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/6350/3219986394</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/6350#issuecomment-3219986394",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/6350#issuecomment-3219986394",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>