Installs pre-commit hooks for OCaml projects that run dune fmt automatically
at main 12 lines 398 B view raw
1Test precommit fix command - sed pattern escaping 2 3Test that sed patterns with slashes are escaped properly 4The sed command should handle URLs with forward slashes: 5 $ echo "Line 1 6 > Co-Authored-By: Claude 7 > https://claude.ai/test 8 > Generated with Claude 9 > Line 2" | sed -e '/Co-Authored-By.*[Cc]laude/d' -e '/https:\/\/claude\.ai\//d' -e '/Generated with.*[Cc]laude/d' 10 Line 1 11 Line 2 12