hexo-swpp 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -98,7 +98,7 @@ const buildNewJson = path => {
|
|
|
98
98
|
else endIndex = path.length
|
|
99
99
|
const url = new URL(root + path.substring(7, endIndex))
|
|
100
100
|
if (findCache(url) && !isExclude(url.pathname)) {
|
|
101
|
-
const content = fs.readFileSync(path)
|
|
101
|
+
const content = fs.readFileSync(path, 'utf-8')
|
|
102
102
|
const key = decodeURIComponent(url.pathname)
|
|
103
103
|
result[key] = crypto.createHash('md5').update(content).digest('hex')
|
|
104
104
|
}
|