Commit b0b40100 b0b401005918dc41debea5c7be1c0334fa763d35 by Shiryaev Andrey

fix

1 parent 0998146d
......@@ -635,10 +635,10 @@ exports.objectValues = objectValues;
*/
function quoteXPathAttributeString(string) {
"use strict";
if (/"/g.test(str)) {
return '\'concat("' + str.toString().replace(/"/g, '", \'"\', "') + '")\'';
if (/"/g.test(string)) {
return '\'concat("' + string.toString().replace(/"/g, '", \'"\', "') + '")\'';
} else {
return '\'"' + str + '"\'';
return '\'"' + string + '"\'';
}
}
exports.quoteXPathAttributeString = quoteXPathAttributeString;
......