From a1e63ee87c35ccbe765d9e620bf91d92169d97c1 Mon Sep 17 00:00:00 2001 From: alex-huff Date: Sun, 28 Sep 2025 11:54:44 -0500 Subject: [PATCH] hints: make default regex ignore trailing whitespace --- kittens/hints/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/hints/main.py b/kittens/hints/main.py index 5da4f4645..48cd50816 100644 --- a/kittens/hints/main.py +++ b/kittens/hints/main.py @@ -15,7 +15,7 @@ from kitty.utils import get_editor, resolve_custom_file from ..tui.handler import result_handler -DEFAULT_REGEX = r'(?m)^\s*(.+)\s*$' +DEFAULT_REGEX = r'(?m)^\s*(.+?)\s*$' def load_custom_processor(customize_processing: str) -> Any: if customize_processing.startswith('::import::'):