breaking changes: CDN 配置了 version 為 true, 本地鏈接也會加上版本號 closed #1218

breaking changes: CDN option 部分參數名字修改
feat: 升級 fancybox 到 v5
feat: 更新 facebook js 版本
feat: 移除 gitter 聊天插件 closed #1212
improvement: 社交圖標 hover 旋轉180度 closed #1195
improvement: 代碼優化
fix: 開啟 archor 後, pace.js 會隨着 archor 添加而觸發的問題
fix: 修復設置圖片時,圖片後綴大寫而導致識別錯誤的 bug closed #1205
This commit is contained in:
Jerry
2023-03-09 22:35:41 +08:00
parent 431b5fa7ce
commit a7d6d0fb80
20 changed files with 76 additions and 99 deletions

View File

@@ -94,7 +94,7 @@ hexo.extend.helper.register('findArchivesTitle', function (page, menu, date) {
})
hexo.extend.helper.register('isImgOrUrl', function (path) {
const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/
const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i
if (path.indexOf('//') !== -1 || imgTestReg.test(path)) {
return true
}