Skip to content

Commit

Permalink
Merge pull request #1 from gigamac/parameterised-jobs-stages
Browse files Browse the repository at this point in the history
Parameterised jobs stages
  • Loading branch information
gigamac authored Aug 30, 2024
2 parents acdb709 + 7bb737e commit a141c44
Show file tree
Hide file tree
Showing 8 changed files with 1,526 additions and 67 deletions.
30 changes: 30 additions & 0 deletions match_functions/special_characters.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

class Specials:
characters = dict([
('$', '#36;'),
('[', '#91;'),
(']', '#93;'),
(' ', '#32;'),
('"','#34;')
])

def __init__(self):
self = self

def cleanse_special_characters(self,test_string):
# specials = Specials()
# def replace_specials(test_string):
parsed_string = test_string
for char in self.characters:
parsed_string = parsed_string.replace(char,'')
return parsed_string

def utf8_special_characters(self,test_string):
# specials = Specials()
# def replace_specials(test_string):
parsed_string = ''
for char in test_string:
parsed_string += self.characters.get(char,char)
return parsed_string

# return replace_specials(test_string) if len([char for char in test_string if char in Specials().characters]) > 0 else return test_string
1 change: 1 addition & 0 deletions mermaid_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
mermaid_flow_objects = MermaidFlowChartObjects().build(pipeline_objects)
mermaid_flowchart = FlowChart(mermaid_flow_objects, Orient.top2bottom)
document = write_document(mermaid_flowchart, Orient.top2bottom)
# document = iter(document)
output_file_name = args.input_file.split('/')[-1].split('.')[0]

i = 1
Expand Down
Loading

0 comments on commit a141c44

Please sign in to comment.