From fd8811018835d9f1e29df21c2a2730af614c4bbb Mon Sep 17 00:00:00 2001 From: Tyler Date: Sat, 14 Jan 2023 02:27:11 -0800 Subject: [PATCH] fix: whitespace search bug --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index ffc2d22..e1a0839 100644 --- a/app.py +++ b/app.py @@ -154,6 +154,7 @@ def ref_parse_book(ref): @app.get("/define") def define(): ref = request.args.get("kw", None) + ref = ref.strip() if not ref: return send_file("html/dictionary.html") with open(dictionary_json, 'r') as data: