News for hackers. Stuff that matters.
Re:Claude Code's source code has been leaked via a map file ... by BoppreH on Tuesday March 31, 2026 @07:10AM (#47585626)
It's fast, but it'll miss a ton of cases. This feels like it would be better served by a prompt instruction, or an additional tiny neural network.

And some of the entries are too short and will create false positives. It'll match the word "offset" ("ffs"), for example. EDIT: no it won't, I missed the \b. Still sounds weird to me.

Re:Claude Code's source code has been leaked via a map file ... by hk__2 on Tuesday March 31, 2026 @07:16AM (#47585687)
It’s fast and it matches 80% of the cases. There’s no point in overengineering it.
Re:Claude Code's source code has been leaked via a map file ... by NitpickLawyer on Tuesday March 31, 2026 @10:49AM (#47588185)
> There’s no point in overengineering it.

I swear this whole thread about regexes is just fake rage at something, and I bet it'd be reversed had they used something heavier (omg, look they're using an LLM call where a simple regex would have worked, lul)...

Re:Claude Code's source code has been leaked via a map file ... by vharuck on Tuesday March 31, 2026 @07:18AM (#47585713)
The pattern only matches if both ends are word boundaries. So "diffs" won't match, but "Oh, ffs!" will. It's also why they had to use the pattern "shit(ty|tiest)" instead of just "shit".
Re:Claude Code's source code has been leaked via a map file ... by BoppreH on Tuesday March 31, 2026 @07:21AM (#47585737)
You're right, I missed the \b's. Thanks for the correction.