spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / word-diff / change-threshold / change-threshold.ts
5 lines · 195 BRaw
1/**
2 * Past this share of changed characters a line pair reads as rewritten, not
3 * edited, and gets no word highlights (the engine's fallback diff rule).
4 */
5export const CHANGE_THRESHOLD = 0.4