()
| 274 | |
| 275 | #[test] |
| 276 | fn strips_line_and_block_markers() { |
| 277 | assert_eq!(clean_comment_markers("// hello"), "hello"); |
| 278 | assert_eq!(clean_comment_markers("/// doc line"), "doc line"); |
| 279 | assert_eq!( |
| 280 | clean_comment_markers("/**\n * Adds things.\n * @param a first\n */"), |
| 281 | "Adds things.\n@param a first" |
| 282 | ); |
| 283 | } |
| 284 | |
| 285 | /// CRLF parity with the JS reference: multiline `^` matches after `\r`, |
| 286 | /// so the block-continuation `\s*` eats the `\n` and the bare `\r` |
nothing calls this directly
no outgoing calls
no test coverage detected