diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 12240aef939d..b0b431523443 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -174,6 +174,13 @@ repos: entry: python misc/scripts/dotnet_format.py types_or: [c#] + - id: svg-check + name: svg-check + args: [--multiline] + entry: (?si)style=(\"|\')(.+)?(fill|stop-color|stroke)( +)?:(.+)?(\1) + language: pygrep + types: [svg] + # End of upstream Godot pre-commit hooks. # # Keep this separation to let downstream forks add their own hooks to this file,