mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
refactor: simplify comment target normalization logic
Introduces `CommentTargetNormalizer` class to decompose the complex `normalizeCommentTarget` function into smaller, state-managed methods. This improves readability and maintainability without changing the external API or behavior. - Extracted logic into `extractPointers`, `resolveEventsAndTags`, `extractInitialValues`, `enrichFromTags`, and `applyDefaults`. - Preserved all fallback logic and tag parsing rules. - Ensured strict string normalization in `extractInitialValues` to match original behavior. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
d218baae4d
commit
78e53a8a1d
1 file changed
+500
-450
+500
-450
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user