about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-25 21:19:31 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-25 21:19:52 +0100
commite87109683acf7c11462dd53684c076a6f7724a63 (patch)
tree4995d048b22177600b34aab8dc8c72cb57b7f555 /res
parent37d08803de305a92ce208d1eddd594d12afd047a (diff)
downloadchawan-e87109683acf7c11462dd53684c076a6f7724a63.tar.gz
default config: make the search function slightly more robust
For easier copy-pasting...
Diffstat (limited to 'res')
-rw-r--r--res/config.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/config.toml b/res/config.toml
index 27589198..ae0d4d8d 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -27,7 +27,7 @@ force-clear = false
 
 [[omnirule]]
 match = '^ddg:'
-substitute-url = '(x) => "https://lite.duckduckgo.com/lite/?kp=-1&kd=-1&q=" + x.substring(4)'
+substitute-url = '(x) => "https://lite.duckduckgo.com/lite/?kp=-1&kd=-1&q=" + x.split(":").slice(1).join(":")'
 
 [page]
 q = 'quit()'