Use string.replace() instead of replaceAll() to support more browsers.

This commit is contained in:
Przemek Wiech 2020-10-06 20:09:16 +02:00
parent a8cd9efa82
commit 61756adeda

View File

@ -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}`}