JIAFENG7 commited on
Commit
741bb73
·
1 Parent(s): 8e6f3c3

Update App

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -104,7 +104,7 @@ def main(
104
  def parse_parallel_str(instruction, nodes, connections, type):
105
  result = {}
106
  if instruction.find("and") == -1:
107
- match_node = re.search(r'(\w+)(\d)', instruction.strip())
108
  if match_node:
109
  match_node_name = match_node.group(1)
110
  match_node_version = match_node.group(2)
@@ -125,7 +125,7 @@ def main(
125
  else:
126
  merge_name = '-'.join([node.strip() for node in instruction.split('and')])
127
  for i, node in enumerate(instruction.split('and')):
128
- match_node = re.search(r'(\w+)(\d)', node.strip())
129
  if match_node:
130
  match_node_name = match_node.group(1)
131
  match_node_version = match_node.group(2)
@@ -200,7 +200,7 @@ def main(
200
  else:
201
  start_node_line = start_node_line.group(0)
202
  start_node_index = input.index(start_node_line) + len(start_node_line)
203
- match_node = re.search(r'(\w+)(\d)', node.strip())
204
  if match_node:
205
  match_node_name = match_node.group(1)
206
  match_node_version = match_node.group(2)
 
104
  def parse_parallel_str(instruction, nodes, connections, type):
105
  result = {}
106
  if instruction.find("and") == -1:
107
+ match_node = re.search(r'([a-zA-Z]+)(\d?)', instruction.strip())
108
  if match_node:
109
  match_node_name = match_node.group(1)
110
  match_node_version = match_node.group(2)
 
125
  else:
126
  merge_name = '-'.join([node.strip() for node in instruction.split('and')])
127
  for i, node in enumerate(instruction.split('and')):
128
+ match_node = re.search(r'([a-zA-Z]+)(\d?)', node.strip())
129
  if match_node:
130
  match_node_name = match_node.group(1)
131
  match_node_version = match_node.group(2)
 
200
  else:
201
  start_node_line = start_node_line.group(0)
202
  start_node_index = input.index(start_node_line) + len(start_node_line)
203
+ match_node = re.search(r'([a-zA-Z]+)(\d?)', node.strip())
204
  if match_node:
205
  match_node_name = match_node.group(1)
206
  match_node_version = match_node.group(2)