* 删除换行符 * @param replace_str 替代的字符串
(str: string, replace_str: string)
| 27 | * @param replace_str 替代的字符串 |
| 28 | */ |
| 29 | static nowrap(str: string, replace_str: string) { |
| 30 | return str?.replace(/\n/g, replace_str) || ''; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * 删除换行符 |
no outgoing calls
no test coverage detected