diff --git a/githooks/update b/githooks/update index 1f0807304..e70a651a3 100755 --- a/githooks/update +++ b/githooks/update @@ -26,7 +26,7 @@ contents = contents.replace(/(src|href)="\/(.*?)\?[a-z0-9]*?"/g, function (a, b, hash = crypto.createHash('md5').update(fstr).digest('hex').substr(0, 8); } catch (e) {} - return b + '="' + c + '?' + hash + '"'; + return b + '="/' + c + '?' + hash + '"'; }); // add news