unjs / ipx

๐Ÿ–ผ๏ธ High performance, secure and easy-to-use image optimizer.
MIT License
1.21k stars 58 forks source link

feat: enhance domain validate with regex, support wildcard domain and path validate #150

Open ausir0726 opened 11 months ago

ausir0726 commented 11 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

I modified the original simple hostname check to support both hostname and pathname validation, and I also added the capability to use wildcard domain verification. ( use regex )

๐Ÿ“ Checklist

jameswragg commented 7 months ago

This looks good & certainly a useful addition. If the merge conflicts were addressed & potentially IPX_HTTP_DOMAINS docs updated to mention wildcard support, is there reason not to merge @pi0?