Closed robb-j closed 1 year ago
https://github.com/digitalinteraction/deconf-api-toolkit/blob/c39d9a94ad465db7989af2aabe3a3592c715f919/src/pretalx/pretalx-service.ts#L190-L197
If the last two lines are swapped, it will remove dash-duplication in strings which have a seperator e.g.
Gender, Tech & Intersectionality Skill Share / Lightning Talk
'Skill Share / Lightning Talk' .toLowerCase() .trim() .replace(/\s+/g, '-') .replace(/[^\w-]+/g, '') .replace(/-+/g, '-') // 'skill-share-lightning-talk'
https://github.com/digitalinteraction/deconf-api-toolkit/blob/c39d9a94ad465db7989af2aabe3a3592c715f919/src/pretalx/pretalx-service.ts#L190-L197
If the last two lines are swapped, it will remove dash-duplication in strings which have a seperator e.g.