Practice ยท 2 of 3
Diff Scanner
Write scanDiff(diff) โ diff is an array of lines. Only ADDED lines (starting with "+" but not "+++") can introduce secrets. Return an array of { line, secrets } for each added line where findSecrets-style detection finds anything, in order.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Secret Detection โ Practice