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.
2 parents e0556c3 + 8c25cf0 commit a6dd02cCopy full SHA for a6dd02c
1 file changed
src/commands.rs
@@ -41,9 +41,10 @@ impl Function {
41
Function::GoogleSearch(query_string) => {
42
let query_args = query_string.replace(" ", "+");
43
let query = config.search_url.replace("%s", &query_args);
44
+ let query = query.strip_suffix("?").unwrap_or(&query);
45
NSWorkspace::new().openURL(
46
&NSURL::URLWithString_relativeToURL(
- &objc2_foundation::NSString::from_str(&query),
47
+ &objc2_foundation::NSString::from_str(query),
48
None,
49
)
50
.unwrap(),
0 commit comments