There was an error while loading. Please reload this page.
1 parent b1b090b commit 24f71d3Copy full SHA for 24f71d3
1 file changed
src/detect.rs
@@ -1410,11 +1410,7 @@ mod tests {
1410
1411
#[test]
1412
fn pnpm_quoted_hash_in_pattern_not_truncated() {
1413
- let dir = tempdir().unwrap();
1414
- // Pattern value containing # inside quotes must not be truncated.
1415
- // Using a directory name without # (filesystem-safe) but verifying the
1416
- // parser does not truncate a quoted value that has # before the closing quote.
1417
- // We encode this as a unit test on the helper directly.
+ // Direct unit test for strip_yaml_inline_comment: # inside quotes is not a comment.
1418
assert_eq!(
1419
strip_yaml_inline_comment(r#""packages/#internal" # comment"#),
1420
r#""packages/#internal""#,
0 commit comments