0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 22:02:46 +00:00

NOrmalize strings before rnuning MD5s

This commit is contained in:
David Bolack
2025-07-09 18:52:45 -05:00
parent 1d92b98568
commit 81e20f032e
2 changed files with 2 additions and 2 deletions

View File

@@ -341,7 +341,7 @@ const api = {
const brewFromServer = req.brew;
splitTextStyleAndMetadata(brewFromServer);
brewFromServer.hash = await md5(brewFromServer.text);
brewFromServer.hash = await md5(brewFromServer.text.normalize());
if((brewFromServer?.version !== brewFromClient?.version) || (brewFromServer?.hash !== brewFromClient?.hash)) {
if(brewFromClient?.version !== brewFromClient?.version)