Currently, there is a bug in common.getFiles() in which wc_name is modified in each iteration of the for com in files: loop. Because the regex is regenerated within the loop as well, this means that only the first iteration of the loop will find a matching file; all other iterations will fail to find regex matches. This PR moves the modification of wc_name and the generation of the regex outside the loop.
Currently, there is a bug in
common.getFiles()
in whichwc_name
is modified in each iteration of thefor com in files:
loop. Because the regex is regenerated within the loop as well, this means that only the first iteration of the loop will find a matching file; all other iterations will fail to find regex matches. This PR moves the modification ofwc_name
and the generation of the regex outside the loop.