aboutsummaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
authorTheo Browne <me@t3.gg>2025-02-14 22:31:14 -0800
committerTheo Browne <me@t3.gg>2025-02-14 22:31:14 -0800
commitcc89f1bbd181b555324ccccb43bab833b8743658 (patch)
tree74edd670499a9e3319a1a234c8b08d997e535c66 /src/main.ts
parentf6f88f184f5c8121cdaca47e59f838c1082a5e9f (diff)
downloadunkagi-cc89f1bbd181b555324ccccb43bab833b8743658.tar.xz
unkagi-cc89f1bbd181b555324ccccb43bab833b8743658.zip
handle numbers too
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.ts b/src/main.ts
index 9c2b887..1a49c7f 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -56,7 +56,7 @@ function getBangredirectUrl() {
const selectedBang = bangs.find((b) => b.t === bangCandidate) ?? defaultBang;
// Remove the first bang from the query
- const cleanQuery = query.replace(/![a-z]+\s*/i, "").trim();
+ const cleanQuery = query.replace(/![a-z0-9]+\s*/i, "").trim();
// Format of the url is:
// https://www.google.com/search?q={{{s}}}