Strip any residual raw comment markers from a brief/description field.
(s: str)
| 46 | _RAW_COMMENT_RE = re.compile(r'/\*+|\*+/|@brief|@param|@class|@struct|@enum|@return') |
| 47 | |
| 48 | def _clean_brief(s: str) -> str: |
| 49 | """Strip any residual raw comment markers from a brief/description field.""" |
| 50 | if not s: |
| 51 | return '' |
| 52 | s = _RAW_COMMENT_RE.sub('', s).strip() |
| 53 | # Remove leading * lines |
| 54 | s = re.sub(r'^\*+\s*', '', s, flags=re.MULTILINE).strip() |
| 55 | return s |
| 56 | |
| 57 | def _editor_badge(prop: dict) -> str: |
| 58 | if prop.get('is_edit_anywhere'): |
no outgoing calls
no test coverage detected