Skip to content

Commit

Permalink
sub: substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPacker committed Dec 28, 2020
1 parent 9bc78e9 commit 17077ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions filterCSV
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ from functools import reduce

# from CSVTree import CSVTree

filterCSV_level = "1.11"
filterCSV_date = "31 August, 2020"
filterCSV_level = "1.12"
filterCSV_date = "28 December, 2020"

inputIndentCharacters = ""

Expand Down Expand Up @@ -1570,6 +1570,8 @@ class CSVTree:
self.data["icons"] += "," + action
elif action == "noicons":
self.data["icons"] = ""
elif action[0:4] == "sub:":
self.data["cell"] = re.sub(criterion, action[4:], self.data["cell"])
elif action.isdigit():
# Attempt to parse as from the colour palette
colourNumber = int(action)
Expand Down

0 comments on commit 17077ee

Please sign in to comment.