webtides / element-js

Simple and lightweight base classes for web components with a beautiful API
MIT License
28 stars 3 forks source link

add optionalAttribute / spread tests when values are regular expressions #122

Open quarkus opened 3 months ago

quarkus commented 3 months ago

Find out if it actually makes sense to render complex expressions like: /[a-z0-9!#$%&'+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'+/=?^_`{|}~-]+)@(?:[a-z0-9](?:[a-z0-9-][a-z0-9])?.)+a-z0-9?/g

If so, write tests, fix bugs.

Would also be nice to find out how other places handle these values (attr assignment / reflection / parsing) handle these cases