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