Skip to content

Commit

Permalink
build: prepare v5.16.1 release (#1588)
Browse files Browse the repository at this point in the history
* 5.16.1

* refactor: use exec instead of match

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy authored Oct 12, 2024
1 parent 237a6b6 commit 6599f98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/utils/emojis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

0 comments on commit 6599f98

Please sign in to comment.