MCPcopy Create free account
hub / github.com/bugy/script-server / unwrap_quotes

Function unwrap_quotes

src/utils/string_utils.py:20–26  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

18
19
20def unwrap_quotes(string):
21 if string.startswith('"') and string.endswith('"'):
22 return unwrap_quotes(string[1:-1])
23 elif string.startswith("'") and string.endswith("'"):
24 return unwrap_quotes(string[1:-1])
25
26 return string
27
28
29def strip(value):

Callers 1

parse_headerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected