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 8641dc5 commit b51b8aaCopy full SHA for b51b8aa
plugins/src/web/mod.rs
@@ -199,7 +199,9 @@ impl App {
199
fn build_query(definition: &Definition, query: &str) -> String {
200
let q = definition.query.as_str();
201
202
- let prefix = if q.starts_with("https://") || q.starts_with("http://") {
+ let scheme_regex = Regex::new(r"^([a-zA-Z]+[a-zA-Z0-9\+\-\.]*):").unwrap();
203
+
204
+ let prefix = if scheme_regex.is_match(q) {
205
""
206
} else {
207
"https://"
0 commit comments