mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-01 04:38:52 +02:00
[eric] browser: composer regex catches X's 'Post text' + 'add a comment' (live coverage sweep: X tweet composer IS in the AX list but its name didn't match; safely excludes 'postal code'). Proves the deeper point: composer names vary per site, name-regex is inherently chasing them
This commit is contained in:
@@ -31,8 +31,9 @@ P_COMPOSER_ROW_RE = re.compile(r"\[(\d+)\]\*?<\s*textbox\s+\"([^\"]*)\"", re.I)
|
||||
# message", X/Slack "Message", Discord "Message @user", Gmail "Message Body", "Post your
|
||||
# reply", "What's happening", "Add a comment". Not per-site: one structural shape.
|
||||
P_COMPOSER_NAME_RE = re.compile(
|
||||
r"write|messag|compose|reply|comment|post your|what.?s happening|"
|
||||
r"tweet|caption|say something|start a|new message|body|your (message|note)",
|
||||
r"write|messag|compose|reply|comment|post your|post text|what.?s happening|"
|
||||
r"tweet|caption|say something|start a|new message|body|your (message|note)|"
|
||||
r"add a comment|write something",
|
||||
re.I,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user