MCPcopy Index your code
hub / github.com/nodejs/node / ShouldEscape

Function ShouldEscape

deps/v8/tools/android-run.py:73–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72def Escape(arg):
73 def ShouldEscape():
74 for x in arg:
75 if not x.isalnum() and x != '-' and x != '_':
76 return True
77 return False
78
79 return arg if not ShouldEscape() else '"%s"' % (arg.replace('"', '\\"'))
80

Callers 1

EscapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected