Skip to content

fix(hardening): enhance hook to catch single-quoted path literals (#3939)#3968

Merged
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-3939
Apr 8, 2026
Merged

fix(hardening): enhance hook to catch single-quoted path literals (#3939)#3968
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-3939

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 8, 2026

Closes #3939

Fixed the pre-commit hook regex to correctly detect both single and double quoted hardcoded path literals.

)

The grep pattern for hardcoded paths used POSIX non-capturing group syntax
(?:...) which is not supported in ERE. Updated to standard alternation syntax
["'](...) that works with both single and double quoted strings.

Tested: grep now correctly detects both 'path' and "path" literals.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mrveiss mrveiss merged commit f2d7ad5 into Dev_new_gui Apr 8, 2026
1 of 3 checks passed
@mrveiss mrveiss deleted the fix/issue-3939 branch April 8, 2026 08:12
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