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
d2cb5c0f
...
d2cb5c0f0d66b42a24c3a8ce9f08930a3777c916
authored
2013-07-09 01:24:26 +0400
by
Shiryaev Andrey
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
b0b40100
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
modules/utils.js
modules/utils.js
View file @
d2cb5c0
...
...
@@ -636,9 +636,9 @@ exports.objectValues = objectValues;
function
quoteXPathAttributeString
(
string
)
{
"use strict"
;
if
(
/"/g
.
test
(
string
))
{
return
'
\'concat("'
+
string
.
toString
().
replace
(
/"/g
,
'", \'"\', "'
)
+
'")\'
'
;
return
'
concat("'
+
string
.
toString
().
replace
(
/"/g
,
'", \'"\', "'
)
+
'")
'
;
}
else
{
return
'
\'"'
+
string
+
'"\'
'
;
return
'
"'
+
string
+
'"
'
;
}
}
exports
.
quoteXPathAttributeString
=
quoteXPathAttributeString
;
...
...
Please
register
or
sign in
to post a comment