trufflesecurity / trufflehog

Find, verify, and analyze leaked credentials
https://trufflesecurity.com
GNU Affero General Public License v3.0
15.83k stars 1.65k forks source link

[feat] - Update span calculation logic to use offset magnitude #2957

Closed ahrav closed 3 months ago

ahrav commented 3 months ago

Description:

This PR refines the adjustableSpanCalculator to use a single offsetMagnitude for span calculation. It simplifies the logic by calculating the startOffset and endIdx based on a default offsetMagnitude, which can be overridden by detector-specific implementations.

Checklist: