From 673f93bc113b36c48fb9fcf955df55d443652762 Mon Sep 17 00:00:00 2001 From: cssmagic Date: Tue, 13 Oct 2015 10:28:30 +0800 Subject: [PATCH] New release. --- dist/oh-my-github.user.js | 5 +++-- src/meta.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/oh-my-github.user.js b/dist/oh-my-github.user.js index 6c4be14..c471064 100644 --- a/dist/oh-my-github.user.js +++ b/dist/oh-my-github.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Oh-My-GitHub -// @version 0.1.0 +// @version 0.1.1 // @author cssmagic // @namespace https://github.com/UserScript // @homepage https://github.com/UserScript/Oh-My-GitHub @@ -1635,7 +1635,8 @@ void function () { var title = '' // normal headline in markdown - var reHeadline = /^#{1,6}\s*(.+)$/ + // only search h1, to reduce misjudging + var reHeadline = /^#\s*([^#].*)$/ var guessMarkdownTitle = reHeadline.exec(firstLine) if (guessMarkdownTitle) { title = guessMarkdownTitle[1] diff --git a/src/meta.js b/src/meta.js index 8b4959d..24bdd24 100644 --- a/src/meta.js +++ b/src/meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Oh-My-GitHub -// @version 0.1.0 +// @version 0.1.1 // @author cssmagic // @namespace https://github.com/UserScript // @homepage https://github.com/UserScript/Oh-My-GitHub