Skip to content

Commit 4e7327d

Browse files
author
robot
committed
fix: 提取 title 逻辑的正则
1 parent 4846148 commit 4e7327d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/contentScript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function insertButton() {
247247
});
248248
}
249249
const d = ele.innerHTML;
250-
const title = d.match(/(\d+\. .+)(?=<)/)[1];
250+
const title = d.match(/(\d+.+)(?=<)/)[1];
251251
const link = window.location.origin + d.match(/href="(.*?)"/)[1];
252252
const language = document.querySelector("#lang-select").innerText;
253253
// let code = document.querySelector(

0 commit comments

Comments
 (0)