(text:str,list:list[str])
| 19 | |
| 20 | @staticmethod |
| 21 | def search_text_array(text:str,list:list[str]): |
| 22 | matches = [] |
| 23 | for index, item in enumerate(list): |
| 24 | match = re.findall(text, item, flags=re.IGNORECASE) |
| 25 | if len(match)>0: |
| 26 | matches.append({"index":index, "value": item}) |
| 27 | |
| 28 | return matches |
| 29 | |
| 30 | @staticmethod |
| 31 | def format_number(value:object)->str: |
no test coverage detected