MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / _parse_yaml_scalar

Function _parse_yaml_scalar

scripts/common.py:1209–1213  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

1207
1208
1209def _parse_yaml_scalar(value: str) -> str:
1210 value = value.strip()
1211 if len(value) >= 2 and value[0] == value[-1] and value[0] in {"'", '"'}:
1212 return value[1:-1]
1213 return value
1214
1215
1216def _split_inline_yaml_list(value: str) -> list[str]:

Callers 3

_split_inline_yaml_listFunction · 0.85
_parse_yaml_valueFunction · 0.85
_parse_domain_rules_yamlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected