preact-render-to-string icon indicating copy to clipboard operation
preact-render-to-string copied to clipboard

refactor: Regex to sets

Open rschristian opened this issue 1 year ago • 1 comments

Might be marginally faster? Probably easier to maintain at the very least -- easier to tell what properties are being replaced and which aren't.

I did this by comparing against Preact's types, mostly, with a few corrections needed for the SVG types.

rschristian avatar Sep 22 '24 03:09 rschristian