File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1313 // * Temporal commands that chain instructions (e.g., "after summarizing, send email")
1414 temporalCommandsRe = regexp .MustCompile (`(?i)(after|once|when)\s+\w+ing.*?,` )
1515
16- // * Direct override commands
17- overrideCommandsRe = regexp .MustCompile (`(?i)(ignore|disregard|forget)\s+.*? (previous|prior|above|earlier)` )
16+ // * Direct override commands (targeting system instructions/rules)
17+ overrideCommandsRe = regexp .MustCompile (`(?i)(ignore|disregard|forget)\s+(all|your|the|any)?\s* (previous|prior|above|earlier)?\s*(instructions?|rules?|directions?|commands?|prompts? )` )
1818
1919 // * Instruction injection using delimiters
2020 delimiterInjectionRe = regexp .MustCompile (`(?i)(new instructions?|additional task|also do|and then)\s*:` )
You can’t perform that action at this time.
0 commit comments