MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / strips_line_and_block_markers

Function strips_line_and_block_markers

codegraph-kernel/src/docstring.rs:276–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected