mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-04-11 00:56:16 +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} = {};
|
||||
indis.forEach((indi) => {
|
||||
// WikiTree URLs replace spaces with underscores.
|
||||
const escapedId = indi.id.replace(' ', '_');
|
||||
const escapedId = indi.id.replace(/ /g, '_');
|
||||
gedcomIndis[indi.id] = {
|
||||
level: 0,
|
||||
pointer: `@${indi.id}@`,
|
||||
|
||||
Reference in New Issue
Block a user