Skip to content

fix: exclude Slack's reserved mention keywords from people extraction - #56

Open
chrissanchez-iops wants to merge 1 commit into
Houseofmvps:mainfrom
chrissanchez-iops:main
Open

chrissanchez-iops wants to merge 1 commit into
Houseofmvps:mainfrom
chrissanchez-iops:main

Conversation

@chrissanchez-iops

Copy link
Copy Markdown

Summary

Knowledge-mode's @mention person detector matches @here, @channel, etc. as
people whenever docs describe Slack mention syntax in prose, not just code spans

  • e.g. "Use <!here> not @here" or "Always @mention people by Slack user ID".
    These are Slack's own reserved keywords and can never be a real handle in any
    project's docs — same class of false positive JSDOC_TAGS/CSS_AT_RULES already
    guard against just above this in the file.

Found while running --mode knowledge against a real internal memory/notes
directory: here showed up in the extracted People list alongside actual
content.

Test plan

  • Rebuilt (npm run build), reran --mode knowledge against the same
    fixture directory — @here no longer appears in People, unrelated
    generic-word false positives (@mention, @team) are unchanged (out of
    scope for this fix — no clean general rule distinguishes those from a
    real handle without a dictionary check)

Knowledge-mode's @mention person detector was matching @here, @channel,
etc. as people whenever docs describe Slack mention syntax in prose
(not just code spans) -- e.g. "Use <!here> not @here" or "Always
@mention people". These are Slack's own reserved keywords and can
never be a real handle in any project, same class of fix already
applied to JSDOC_TAGS/CSS_AT_RULES above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant