Skip to content

Commit 673f93b

Browse files
committed
New release.
1 parent 158c2db commit 673f93b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dist/oh-my-github.user.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Oh-My-GitHub
3-
// @version 0.1.0
3+
// @version 0.1.1
44
// @author cssmagic
55
// @namespace https://github.com/UserScript
66
// @homepage https://github.com/UserScript/Oh-My-GitHub
@@ -1635,7 +1635,8 @@ void function () {
16351635
var title = ''
16361636

16371637
// normal headline in markdown
1638-
var reHeadline = /^#{1,6}\s*(.+)$/
1638+
// only search h1, to reduce misjudging
1639+
var reHeadline = /^#\s*([^#].*)$/
16391640
var guessMarkdownTitle = reHeadline.exec(firstLine)
16401641
if (guessMarkdownTitle) {
16411642
title = guessMarkdownTitle[1]

src/meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Oh-My-GitHub
3-
// @version 0.1.0
3+
// @version 0.1.1
44
// @author cssmagic
55
// @namespace https://github.com/UserScript
66
// @homepage https://github.com/UserScript/Oh-My-GitHub

0 commit comments

Comments
 (0)