Skip to content

Commit

Permalink
fix(liferay-theme-task): LPD-3102 Update regex to allow url with mult…
Browse files Browse the repository at this point in the history
…iple semicolons
  • Loading branch information
fortunatomaldonado committed Mar 5, 2024
1 parent f9e7c0c commit 734aef8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,13 @@ module.exports = function (css, options) {

function _atrule(name) {
var pos = position();
var m = match(new RegExp('^@' + name + ' *([^;\\n]+);'));
var m = match(
new RegExp(
'^@' +
name +
' *(?:url\\(([^)]+)\\)|([^;\\n]*))(?: *([^;\\n]*))?;'
)
);
if (!m) {
return;
}
Expand Down

0 comments on commit 734aef8

Please sign in to comment.