File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 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 ]
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments