Skip to content

Commit

Permalink
Change path pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
k-miyata committed Apr 20, 2019
1 parent f49b1d1 commit 02f0631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function changeBackground() {
function isArticlePage() {
const path = location.pathname;
// "https://note.mu/<Username>/n/<Note ID>" or "https://<Domain>/n/<Note ID>"
return /^\/[\w\-]+\/n\/\w+$/.test(path) || /^\/n\/\w+$/.test(path);
return /^\/[\w\-]+\/n\/n[a-z0-9]{12}$/.test(path) || /^\/n\/n[a-z0-9]{12}$/.test(path);
}

document.body.addEventListener('transitionend', () => {
Expand Down

0 comments on commit 02f0631

Please sign in to comment.