liferay / liferay-frontend-projects

A monorepo containing assorted Frontend Infrastructure Team projects
Other
66 stars 67 forks source link

fix(liferay-theme-task): Update regex to allow mulitple semicolons for @import #1194

Open fortunatomaldonado opened 4 months ago

fortunatomaldonado commented 4 months ago

https://liferay.atlassian.net/browse/LPD-3102

When a theme contains the following, the regex stops at the first semicolon, causing issues in the _rtl.css files. @import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;500;600;700;800&display=swap");

I was able to resolve this by adjusting the regex so it allows multiple semicolons.

Let me know if there are any questions or comments about this. Thank you!