Replace "range" indicators with mathematical tilde symbols in LCSC provider

This commit is contained in:
d-buchmann 2025-08-07 11:04:47 +02:00
parent 8b417d6441
commit 29539c01a5

View file

@ -163,6 +163,9 @@ class LCSCProvider implements InfoProviderInterface
if ($field === null) { if ($field === null) {
return null; return null;
} }
// Translate "range" indicators to mathematical tilde symbols
// so they don't get rendered as strikethrough by Markdown
$field = preg_replace("/~/", "\u{223c}", $field);
return strip_tags($field); return strip_tags($field);
} }