Skip to content

Commit

Permalink
Corrects variable name for understandability.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubpawlowicz committed Jan 19, 2023
1 parent 17c4a46 commit f6a4c29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/reader/extract-import-url-and-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ var URL_SUFFIX_PATTERN = /\s{0,31}\)/i;
function extractImportUrlAndMedia(atRuleValue) {
var uri;
var mediaQuery;
var stripped;
var normalized;
var parts;

stripped = atRuleValue
normalized = atRuleValue
.replace(IMPORT_PREFIX_PATTERN, '')
.trim()
.replace(URL_PREFIX_PATTERN, '(')
.replace(URL_SUFFIX_PATTERN, ') ')
.replace(QUOTE_PREFIX_PATTERN, '')
.replace(QUOTE_SUFFIX_PATTERN, '');

parts = split(stripped, ' ');
parts = split(normalized, ' ');

uri = parts[0]
.replace(BRACE_PREFIX, '')
Expand Down

0 comments on commit f6a4c29

Please sign in to comment.