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 bc31014 commit 3839987Copy full SHA for 3839987
src/comment.rs
@@ -349,6 +349,12 @@ fn rewrite_comment_inner(
349
Some(result)
350
}
351
352
+/// Returns true if the given string MAY include URLs or alike.
353
+fn has_url(s: &str) -> bool {
354
+ // This function may return false positive, but should get its job done in most cases.
355
+ s.contains("https://") || s.contains("http://")
356
+}
357
+
358
/// Given the span, rewrite the missing comment inside it if available.
359
/// Note that the given span must only include comments (or leading/trailing whitespaces).
360
pub fn rewrite_missing_comment(
0 commit comments