Add ftp and file protocols
This commit is contained in:
parent
dae76d21ff
commit
471e9110f5
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ fn rewrite_comment_inner(
|
|||
/// Returns true if the given string MAY include URLs or alike.
|
||||
fn has_url(s: &str) -> bool {
|
||||
// This function may return false positive, but should get its job done in most cases.
|
||||
s.contains("https://") || s.contains("http://")
|
||||
s.contains("https://") || s.contains("http://") || s.contains("ftp://") || s.contains("file://")
|
||||
}
|
||||
|
||||
/// Given the span, rewrite the missing comment inside it if available.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue