(text)
| 65 | return cleaned_string |
| 66 | |
| 67 | def extract_options(text): |
| 68 | |
| 69 | pattern = re.compile(r"\[([^\]]+)\]") |
| 70 | matches = pattern.findall(text) |
| 71 | |
| 72 | if matches: |
| 73 | option_string = matches[-1] |
| 74 | if "'" not in option_string: |
| 75 | option_list = option_string.split(", ") |
| 76 | else: |
| 77 | option_list = [item.strip().strip("'") for item in option_string.split("', '")] |
| 78 | return option_list |
| 79 | return [] |
| 80 | |
| 81 | |
| 82 | def compare_and_count(array_a, array_b): |
no outgoing calls
no test coverage detected