mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-04-22 22:46:16 +00:00
Use string.replace() instead of replaceAll() to support more browsers.
This commit is contained in:
@@ -37,7 +37,7 @@ const TAG_DESCRIPTIONS = new Map([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
function translateTag(tag: string) {
|
function translateTag(tag: string) {
|
||||||
const normalizedTag = tag.replaceAll('_', '');
|
const normalizedTag = tag.replace(/_/g, '');
|
||||||
return (
|
return (
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id={`gedcom.${normalizedTag}`}
|
id={`gedcom.${normalizedTag}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user