mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-02-18 02:55:48 +00:00
WikiTree: fix ID escaping when there are multiple spaces
This commit is contained in:
parent
c7ef1501df
commit
74e8a19952
@ -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}@`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user