Whoops, don't escape with backslashes here also.

This commit is contained in:
wfowler
2018-07-14 23:59:45 -06:00
parent c8a4bcb22d
commit caa7856fed

View File

@@ -314,9 +314,10 @@ namespace LibBSP {
bool inQuotes = false;
bool isVal = false;
int numCommas = 0;
st.Trim('\r', '\n', '\t');
for (int i = 0; i < st.Length; ++i) {
// Some entity values in Source can use escape sequenced quotes. Need to make sure not to parse those.
if (st[i] == '\"' && (i == 0 || st[i - 1] != '\\')) {
if (st[i] == '\"' && (i == 0 || i == st.Length - 1 || st[i - 1] != '\\')) {
if (inQuotes) {
if (isVal) {
break;