Skip to content

Commit

Permalink
Merge pull request #1194 from fortunatomaldonado/LPD-3102
Browse files Browse the repository at this point in the history
fix(liferay-theme-task): Update regex to allow mulitple semicolons for @import
  • Loading branch information
bryceosterhaus authored Aug 26, 2024
2 parents 79ab512 + 734aef8 commit eaffc85
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 eaffc85

Please sign in to comment.