Skip to content

feat(analyzer): reduce false positive for emoji-zwj-sequence#260

Open
badnoodle wants to merge 2 commits into
NVIDIA:mainfrom
badnoodle:dev
Open

feat(analyzer): reduce false positive for emoji-zwj-sequence#260
badnoodle wants to merge 2 commits into
NVIDIA:mainfrom
badnoodle:dev

Conversation

@badnoodle

Copy link
Copy Markdown

Fixes #259 , check the valid Emoji ZWJ sequences to reduce false positive

Signed-off-by: Yangnian <ydyangnian@163.com>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Automated SkillSpector Review]

Requesting changes. The emoji carve-out misses common valid ZWJ sequences containing skin-tone modifiers or VS16, and the PR adds no regressions. Handle the full emoji sequence around ZWJ, add representative positive/negative tests, declare regex as a direct dependency, and run formatting.

Comment thread src/skillspector/nodes/analyzers/common.py
… unit test

Signed-off-by: Yangnian <ydyangnian@163.com>
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.

Static analyzers flag emoji-zwj-sequence as Prompt Injection

2 participants