From 89fdfe657857b18ff216e3af1f57e74d9bb8bc0e Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Sat, 12 Oct 2024 09:59:59 -0400 Subject: [PATCH 1/2] 5.16.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 380e9a458..5f88da9a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gitify", - "version": "5.16.0", + "version": "5.16.1", "description": "GitHub notifications on your menu bar.", "main": "build/main.js", "scripts": { From 8c5414a13511990c4213e1e7f31bd8ea89bfec36 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Sat, 12 Oct 2024 10:03:32 -0400 Subject: [PATCH 2/2] refactor: use exec instead of match Signed-off-by: Adam Setch --- src/renderer/utils/emojis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/utils/emojis.ts b/src/renderer/utils/emojis.ts index 81632aebd..cff236c05 100644 --- a/src/renderer/utils/emojis.ts +++ b/src/renderer/utils/emojis.ts @@ -29,6 +29,6 @@ export function convertTextToEmojiImgHtml(text: string): string { } function extractSvgFilename(imgHtml: string): string { - const srcMatch = imgHtml.match(/src="(.*)"/); + const srcMatch = /src="(.*)"/.exec(imgHtml); return path.basename(srcMatch[1]); }