Skip to content

Commit a2e0379

Browse files
fix(migrate): update match rules
1 parent e5da11a commit a2e0379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrate/migrate-bot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ ${html}
179179

180180
function getLocalPath(url) {
181181
// https://en.cppreference.com/w/cpp/comments.html -> src/content/docs/cpp/comments.mdx
182-
const match = url.match(/https?:\/\/en\.cppreference\.com\/w\/(.+)\.html$/);
182+
const match = url.match(/cppreference\.com\/w\/(.+)\.html$/);
183183
if (!match) {
184184
throw new Error(`无法从URL解析路径: ${url}`);
185185
}

0 commit comments

Comments
 (0)