Update CLAUDE.md with release tagging instructions and enhance is_question logic to detect question marks anywhere in the text
This commit is contained in:
@@ -59,11 +59,12 @@ def test_display_keeps_emoji_but_drops_markdown():
|
||||
assert for_display("* one\n* two") == "• one • two"
|
||||
|
||||
|
||||
def test_is_question_only_fires_on_a_trailing_question():
|
||||
def test_is_question_fires_when_a_question_mark_appears_anywhere():
|
||||
assert is_question("Ready to run a command or start a project?")
|
||||
assert is_question("It's 7:15 AM. Want me to set a timer?")
|
||||
assert is_question("What time is it? It's 7:15 AM.")
|
||||
assert is_question("Can you help me with this? I need a quick answer.")
|
||||
assert not is_question("It's 7:15 AM on July 23, 2026.")
|
||||
assert not is_question("What time is it? It's 7:15 AM.") # asked in passing
|
||||
|
||||
|
||||
def test_is_question_ignores_trailing_decoration():
|
||||
|
||||
Reference in New Issue
Block a user