Skip to content

Commit ebe6a68

Browse files
committed
github-headline: adapt parsing for latest GitHub design changes
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 320b096 commit ebe6a68

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

github-headline/github-headline.qml

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@ QtObject {
2626
// script.log(output);
2727

2828
// parse the headline
29-
var re2 = /<bdi class="\s*js-issue-title[^"]+"[^>]*>\s*(.+?)\s*<\/bdi>/im
29+
var re2 = /<bdi class="[^"]+markdown-title"[^>]*>\s*(.+?)\s*<\/bdi>/im
3030
var result2 = re2.exec(output);
3131

32+
if (result2 == null) {
33+
var re2 = /<bdi class="\s*js-issue-title[^"]+"[^>]*>\s*(.+?)\s*<\/bdi>/im
34+
var result2 = re2.exec(output);
35+
}
36+
3237
if (result2 == null) {
3338
re2 = /<span class="\s*js-issue-title[^"]+"[^>]*>\s*(.+?)\s*<\/span>/im
3439
result2 = re2.exec(output);

github-headline/info.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "GitHub Headline",
33
"identifier": "github-headline",
44
"script": "github-headline.qml",
5-
"version": "0.2.2",
5+
"version": "0.2.3",
66
"minAppVersion": "17.05.6",
77
"authors": ["@pbek"],
88
"description" : "Inserts a headline and a link to the <a href='https://github.com/'>GitHub</a> issue or pull request from an url in the clipboard into the current note when you paste the link with <i>Ctrl + Shift + V</i>."

0 commit comments

Comments
 (0)