diff --git a/lib/routes/changelog.js b/lib/routes/changelog.js index da75a40e26..1556d0d64b 100644 --- a/lib/routes/changelog.js +++ b/lib/routes/changelog.js @@ -39,10 +39,10 @@ module.exports = async (ctx) => { const patt = /[0-9]\d*/g; let result; let date = ""; - while ((result = patt.exec(str)) != null) { + while ((result = patt.exec(str)) !== null) { date += result + '-'; } - return date.replace(/\-$/g, ""); + return date.replace(/-$/g, ""); } return {