mirror of
https://github.com/celisej567/LibBSP.git
synced 2026-09-04 15:35:12 +03:00
Whoops, don't escape with backslashes here also.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user