Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
linker
Commits
89de54ad
Commit
89de54ad
authored
Jun 11, 2019
by
Tobias Steiner
Browse files
Add an escaper for special character
parent
5617911a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/neo4j-linker.ts
View file @
89de54ad
import
{
v1
as
neo4j
}
from
'
neo4j-driver
'
;
import
*
as
jsesc
from
'
jsesc
'
;
export
class
Linker
{
private
nconf
;
private
logger
;
...
...
@@ -59,6 +59,14 @@ export class Linker {
},
1000
);
});
});
}
/**
* There is no build in function to escape
* https://github.com/neo4j/neo4j-javascript-driver/issues/398
* @param string
*/
public
escape
(
data
:
string
)
{
return
jsesc
(
data
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment