Skip to content

Commit 93a038c

Browse files
fix(prompt_injection): import get_line_number used by the bidi scan
The bidi-control block calls get_line_number at line 470 but the helper was never added to the .common import, so ruff reported F821 and the five bidi tests raised NameError at runtime. static_patterns_data_exfiltration.py already imports the same helper from .common and calls it with the same signature. Signed-off-by: Mohammed Alkindi <[email protected]>
1 parent d2ff506 commit 93a038c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/skillspector/nodes/analyzers/static_patterns_prompt_injection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from skillspector.state import AnalyzerNodeResponse, SkillspectorState
2929

3030
from . import static_runner
31-
from .common import LOGICAL_LINE_BREAK, SourceLocationIndex, get_context
31+
from .common import LOGICAL_LINE_BREAK, SourceLocationIndex, get_context, get_line_number
3232
from .pattern_defaults import PatternCategory
3333
from .whitespace_padding import (
3434
VERTICAL_HIGH_SEVERITY_LINES,

0 commit comments

Comments
 (0)