From 1f7dca1d3875f29bfb2ac14483b59802de0595ad Mon Sep 17 00:00:00 2001 From: Chelsea Hughes Date: Tue, 25 Apr 2017 21:11:17 -0700 Subject: [PATCH] Add lines in diff engine to effect ignoreWhitespace and ignoreCase --- src/VBASync/Model/DiffPlex_ModVba.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VBASync/Model/DiffPlex_ModVba.cs b/src/VBASync/Model/DiffPlex_ModVba.cs index 0a069b9..47e71ff 100644 --- a/src/VBASync/Model/DiffPlex_ModVba.cs +++ b/src/VBASync/Model/DiffPlex_ModVba.cs @@ -298,6 +298,8 @@ private static void BuildPieceHashes(IDictionary pieceHash, Modific for (var i = 0; i < pieces.Length; i++) { var piece = UppercaseVbaSymbols(pieces[i], ref startInComment); + if (ignoreWhitespace) piece = piece.Trim(); + if (ignoreCase) piece = piece.ToUpperInvariant(); if (pieceHash.ContainsKey(piece)) {