MCPcopy
hub / github.com/BishopFox/jsluice / RawString

Method RawString

tree.go:206–208  ·  view source on GitHub ↗

RawString returns the raw JavaScript representation of a string (i.e. escape sequences are left undecoded) but with the surrounding quotes removed.

()

Source from the content-addressed store, hash-verified

204// of a string (i.e. escape sequences are left undecoded)
205// but with the surrounding quotes removed.
206func (n *Node) RawString() string {
207 return dequote(n.Content())
208}
209
210// DecodedString returns a fully decoded version of a
211// JavaScript string. It is just a convenience wrapper

Callers 14

CollapsedStringMethod · 0.95
awsMatcherFunction · 0.80
pairMatcherMethod · 0.80
stringMatcherMethod · 0.80
AllSecretMatchersFunction · 0.80
AsMapMethod · 0.80
AllURLMatchersFunction · 0.80
matchXHRFunction · 0.80
GetNodeFuncMethod · 0.80
GetKeysMethod · 0.80
GetStringMethod · 0.80
GetStringIMethod · 0.80

Calls 2

ContentMethod · 0.95
dequoteFunction · 0.70

Tested by

no test coverage detected