Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
b0b40100
...
b0b401005918dc41debea5c7be1c0334fa763d35
authored
2013-07-08 13:32:17 +0400
by
Shiryaev Andrey
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
0998146d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
modules/utils.js
modules/utils.js
View file @
b0b4010
...
...
@@ -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
(
str
ing
))
{
return
'\'concat("'
+
str
ing
.
toString
().
replace
(
/"/g
,
'", \'"\', "'
)
+
'")\''
;
}
else
{
return
'\'"'
+
str
+
'"\''
;
return
'\'"'
+
str
ing
+
'"\''
;
}
}
exports
.
quoteXPathAttributeString
=
quoteXPathAttributeString
;
...
...
Please
register
or
sign in
to post a comment