You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(detect): reduce complexity of parse_header_line in detect.rs (#1540)
Extract parse_header_value helper to eliminate the nested quoted-string
parser from parse_header_line. The quoted-value logic (escape handling,
closing-quote scan, tail slicing) was inlined inside the source= branch,
adding ~4 levels of nesting. Moving it into a dedicated private function
reduces parse_header_line to a flat dispatch loop with no deep nesting.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments