const fs = require("fs"); const path = require("path"); class AddButtonTypesStrategy { #buttonTagPattern = /]*?)?>/gi; fix(html) { return html.replace(this.#buttonTagPattern, (match, attributes) => { if (attributes && /\btype\s*=/i.test(attributes)) { return match; } return attributes ? `