scripts: replace dark-variant.sh with go scripts/variants

uses regex mostly, resulting in a significantly faster execution (old:
~2s, new: ~31ms). Only matches classList.add/remove and class="..."
(won't touch string literal variables or colours), but these weren't
really used anyway. Supports multi-line classList.add/remove, which was
the reason I wrote this anyway (formatting the codebase introduced some
of these).
This commit is contained in:
Harvey Tindall
2025-12-09 14:28:05 +00:00
parent 817107622a
commit 4a9bac1027
7 changed files with 166 additions and 61 deletions
+3
View File
@@ -0,0 +1,3 @@
module github.com/hrfee/jfa-go/scripts/variants
go 1.25.4