B2022-077 Need to use the Singleline RegexOption for Regex.Matches

This commit is contained in:
John Jenko 2022-07-11 20:36:27 +00:00
parent 23894b9ab5
commit 1974599986

View File

@ -375,7 +375,8 @@ namespace VEPROMS.CSLA.Library
// B2022-020 remove a un-needed question mark that was in the search criteria "(<APL [^<]+) /APL>" // B2022-020 remove a un-needed question mark that was in the search criteria "(<APL [^<]+) /APL>"
// B2022-050 change the search string from "(<APL [^<]+) /APL>" to "<APL .*? /APL>" to handle when RO values have less then sign // B2022-050 change the search string from "(<APL [^<]+) /APL>" to "<APL .*? /APL>" to handle when RO values have less then sign
MatchCollection mm = Regex.Matches(roval, "<APL .*? /APL>"); // B2022-077 Need to use the RegexOption of Singleline to handle cases of an RO Return value having ascii newline characters (\r\n)
MatchCollection mm = Regex.Matches(roval, "<APL .*? /APL>", RegexOptions.Singleline);
// C2022-014 commented write to error log. Keep for debugging purposes. // C2022-014 commented write to error log. Keep for debugging purposes.
//if (mm.Count == 0) // B2022-020 will now write in error log if there is a problem //if (mm.Count == 0) // B2022-020 will now write in error log if there is a problem