mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-18 21:43:45 +00:00
WikiTree: fix ID escaping when there are multiple spaces
This commit is contained in:
@@ -384,7 +384,7 @@ function buildGedcom(indis: JsonIndi[]): GedcomData {
|
|||||||
const gedcomIndis: {[key: string]: GedcomEntry} = {};
|
const gedcomIndis: {[key: string]: GedcomEntry} = {};
|
||||||
indis.forEach((indi) => {
|
indis.forEach((indi) => {
|
||||||
// WikiTree URLs replace spaces with underscores.
|
// WikiTree URLs replace spaces with underscores.
|
||||||
const escapedId = indi.id.replace(' ', '_');
|
const escapedId = indi.id.replace(/ /g, '_');
|
||||||
gedcomIndis[indi.id] = {
|
gedcomIndis[indi.id] = {
|
||||||
level: 0,
|
level: 0,
|
||||||
pointer: `@${indi.id}@`,
|
pointer: `@${indi.id}@`,
|
||||||
|
|||||||
Reference in New Issue
Block a user