mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
added docstring to strip_quoted_wrapping
This commit is contained in:
parent
8a8bc3e244
commit
941b1e50eb
1 changed files with 10 additions and 0 deletions
10
utils.py
10
utils.py
|
@ -55,6 +55,16 @@ def quoted_file(fname):
|
||||||
|
|
||||||
|
|
||||||
def strip_quoted_wrapping(res, fname=None):
|
def strip_quoted_wrapping(res, fname=None):
|
||||||
|
"""
|
||||||
|
Given an input string which may have extra "wrapping" around it, remove the wrapping.
|
||||||
|
For example:
|
||||||
|
|
||||||
|
filename.ext
|
||||||
|
```
|
||||||
|
We just want this content
|
||||||
|
Not the filename and triple quotes
|
||||||
|
```
|
||||||
|
"""
|
||||||
if not res:
|
if not res:
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue