镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

text in code blocks is treated as commands #412

Open

Description

@kristersd

Text written in code blocks is treated as commands. We should ignore code blocks, for example, to avoid triggering the bot when the user has:

if (!auth) {}

Implementation details:

  • Ignore text fragments which are written in code blocks.

Activity

  1. changed the title [-]text in code blocks are treated as commands[/-] [+]text in code blocks is treated as commands[/+] on Sep 17, 2024
  2. vcarl commented on Sep 17, 2024

    @vcarl
    Member

    There's an existing string helper that "simplifies" text by stripping diacriticals, emoji, and whitespace (it gets used in the track logic to determine if something is "the same message" for tracking purposes across channels). This makes sense to me as another string helper, a filter pass to remove irrelevant text before it gets processed by other logic. Quoted text probably also good to ignore

  3. achyu-dev commented on Feb 25, 2025

    @achyu-dev
    Contributor

    I am working on this issue

  4. added a commit that references this issue on Mar 14, 2025
    0b521fd
  5. reopened this on Mar 15, 2025
  6. achyu-dev commented on Jun 15, 2025

    @achyu-dev
    Contributor

    I am resuming work on this now. Sorry for the delay.

  7. added a commit that references this issue on Jun 29, 2025
    460a034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions