mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
copy input list so we don't mutate the caller's data
This commit is contained in:
@ -90,6 +90,7 @@ def sparse_table_parse(data: List[str], delim: str = '\u2063') -> List[Dict]:
|
||||
|
||||
List of Dictionaries
|
||||
"""
|
||||
data = data.copy()
|
||||
output: List = []
|
||||
header_text: str = data.pop(0)
|
||||
header_text = header_text + ' '
|
||||
|
Reference in New Issue
Block a user