We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dae76d2 commit 471e911Copy full SHA for 471e911
src/comment.rs
@@ -396,7 +396,7 @@ fn rewrite_comment_inner(
396
/// Returns true if the given string MAY include URLs or alike.
397
fn has_url(s: &str) -> bool {
398
// This function may return false positive, but should get its job done in most cases.
399
- s.contains("https://") || s.contains("http://")
+ s.contains("https://") || s.contains("http://") || s.contains("ftp://") || s.contains("file://")
400
}
401
402
/// Given the span, rewrite the missing comment inside it if available.
0 commit comments