(lines)
| 140 | # 按语言后缀排序(按规范排列规则,语言后缀优先) |
| 141 | |
| 142 | def sort_by_suffix(lines): |
| 143 | return sorted(lines, key=lambda x: re.search(r"[:\-]([a-zA-Z\-]*)", x).group(1) if re.search(r"[:\-]([a-zA-Z\-]*)", x) else "") |
| 144 | |
| 145 | sorted_descriptions = sort_by_suffix(descriptions) |
| 146 | sorted_names = sort_by_suffix(names) |
no outgoing calls
no test coverage detected