mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-20 23:16:49 +00:00
fix build
This commit is contained in:
@@ -375,8 +375,8 @@ export const scanAndConvertToLinks = node => {
|
||||
*/
|
||||
export function getLastSegmentFromUrl(url) {
|
||||
// 去掉 URL 中的查询参数部分
|
||||
let trimmedUrl = url.split('?')[0]
|
||||
const trimmedUrl = url.split('?')[0]
|
||||
// 获取最后一个斜杠后面的内容
|
||||
let segments = trimmedUrl.split('/')
|
||||
const segments = trimmedUrl.split('/')
|
||||
return segments[segments.length - 1]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user