Skip to content

Commit

Permalink
fix: credit vk6 for regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Oct 27, 2024
1 parent 53b9972 commit d009a00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rewrite/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class CSS extends EventEmitter {
return this.recast(str, options, 'source');
}
recast(str, options, type) {
// regex from vk6 (https://github.com/ading2210)
const urlRegex = /url\(['"]?(.+?)['"]?\)/gm
const Atruleregex = /@import\s+(url\s*?\(.{0,9999}?\)|['"].{0,9999}?['"]|.{0,9999}?)($|\s|;)/gm

Expand Down

0 comments on commit d009a00

Please sign in to comment.