diff --git a/meetings/notes/name-map.json b/meetings/notes/name-map.json index a86fd7c..1131f63 100644 --- a/meetings/notes/name-map.json +++ b/meetings/notes/name-map.json @@ -2,47 +2,52 @@ "people": [ { "github": "calebmcquaid", - "names": ["Caleb", "calebmcquaid"] + "names": ["Caleb"] }, { "github": "cassidyjames", "emails": ["cassidyjames@roost.tools"], - "names": ["Cassidy James Blaede", "Cassidy", "cassidyjames"] + "names": ["Cassidy James Blaede", "Cassidy"] }, { "github": "chimosky", - "names": ["Ibiam Chihurumnaya", "Ibiam", "Chihurumnaya", "chimosky"] + "names": ["Ibiam Chihurumnaya", "Ibiam", "Chihurumnaya"] + }, + { + "github": "haileyok", + "emails": ["hailey.elizabeth@discordapp.com"], + "names": ["Hailey"] }, { "github": "juanmrad", "emails": ["juan@roost.tools"], - "names": ["Juan Mrad", "Juan", "juanmrad"] + "names": ["Juan Mrad", "Juan"] }, { "github": "julietshen", "emails": ["juliet@roost.tools"], - "names": ["Juliet Shen", "Juliet", "julietshen"] + "names": ["Juliet Shen", "Juliet"] }, { "github": "scarnecchia", - "names": ["Giulia", "scarnecchia"] + "names": ["Giulia"] }, { "github": "serendipty01", - "names": ["Shalabh", "serendipty01"] + "names": ["Shalabh"] }, { "github": "taobojlen", - "names": ["Tao", "taobojlen"] + "names": ["Tao"] }, { "github": "ThatKoffe", - "names": ["Sem", "ThatKoffe"] + "names": ["Sem"] }, { "github": "ThisIsMissEm", "emails": ["emelia@brandedcode.com"], - "names": ["Emelia Smith", "Emelia", "ThisIsMissEm"] + "names": ["Emelia Smith", "Emelia"] } ] } diff --git a/meetings/notes/transform.js b/meetings/notes/transform.js index 8324b18..3b1c5a1 100644 --- a/meetings/notes/transform.js +++ b/meetings/notes/transform.js @@ -8,6 +8,7 @@ export function loadNameMap(data) { for (const person of data.people ?? []) { for (const email of person.emails ?? []) emailToGithub[email.toLowerCase()] = person.github; + nameToGithub[person.github.toLowerCase()] = person.github; for (const name of person.names ?? []) nameToGithub[name.toLowerCase()] = person.github; } @@ -38,8 +39,8 @@ export function processNotes(text, emailToGithub, nameToGithub) { return github ? `@${github}` : match; }); - // Unescape Google Docs artifacts: \! \( \) \[ \] - line = line.replace(/\\([!()\[\]])/g, '$1'); + // Unescape Google Docs artifacts: \! \( \) \[ \] \# \+ + line = line.replace(/\\([!()\[\]#+])/g, '$1'); // * bullets → - bullets (preserving indentation) line = line.replace(/^(\s*)\* /g, '$1- ');