refactor(feed): replace encodeURI with encodeURL

This commit is contained in:
curben 2019-12-12 09:00:03 +00:00
parent d70dea4097
commit 80fec3c2f4
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 2 additions and 1 deletions

View File

@ -5,9 +5,10 @@ const env = new nunjucks.Environment()
const { join } = require('path')
const { readFileSync } = require('fs')
const moment = require('moment')
const { encodeURL } = require('hexo-util')
env.addFilter('uriencode', str => {
return encodeURI(str)
return encodeURL(str)
})
env.addFilter('noControlChars', str => {