fix
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -635,10 +635,10 @@ exports.objectValues = objectValues; | ... | @@ -635,10 +635,10 @@ exports.objectValues = objectValues; |
635 | */ | 635 | */ |
636 | function quoteXPathAttributeString(string) { | 636 | function quoteXPathAttributeString(string) { |
637 | "use strict"; | 637 | "use strict"; |
638 | if (/"/g.test(str)) { | 638 | if (/"/g.test(string)) { |
639 | return '\'concat("' + str.toString().replace(/"/g, '", \'"\', "') + '")\''; | 639 | return '\'concat("' + string.toString().replace(/"/g, '", \'"\', "') + '")\''; |
640 | } else { | 640 | } else { |
641 | return '\'"' + str + '"\''; | 641 | return '\'"' + string + '"\''; |
642 | } | 642 | } |
643 | } | 643 | } |
644 | exports.quoteXPathAttributeString = quoteXPathAttributeString; | 644 | exports.quoteXPathAttributeString = quoteXPathAttributeString; | ... | ... |
-
Please register or sign in to post a comment