diff --git a/src/util/pluginUtil.js b/src/util/pluginUtil.js index 15003674d0..9d24a89170 100644 --- a/src/util/pluginUtil.js +++ b/src/util/pluginUtil.js @@ -24,7 +24,9 @@ const pluginUtil = { return `${filePath}.png`; } - const hashedContent = cryptoJS.MD5(content).toString(); + // This is to keep the hash consistent across windows / unix systems + const normalizedContent = content.replace(/\r\n/g, '\n'); + const hashedContent = cryptoJS.MD5(normalizedContent).toString(); return `${hashedContent}.png`; },