(title)
| 156 | * @return {string} |
| 157 | */ |
| 158 | export function cleanPreviewTitle(title) { |
| 159 | if (title === 'UpdateRefsPreview') { |
| 160 | title = 'Update refs preview' |
| 161 | } else if (title === 'MergeInfoPreview') { |
| 162 | title = 'Merge info preview' |
| 163 | } else if (!title.endsWith('preview')) { |
| 164 | title = title + ' preview' |
| 165 | } |
| 166 | return title |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Turn the given title into an HTML-ready anchor. |
no outgoing calls
no test coverage detected