Skip to content

Commit

Permalink
Update packages/packem/src/rollup/plugins/css/loaders/sass/utils/norm…
Browse files Browse the repository at this point in the history
…alize-source-map.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
prisis and coderabbitai[bot] authored Oct 5, 2024
1 parent f2f1290 commit f4627e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ABSOLUTE_SCHEME = /^[A-Z0-9+\-.]+:/i;

const getURLType = (source: string): "absolute" | "scheme-relative" | "path-absolute" | "path-relative" => {
if (source.startsWith("/")) {
if (source[1] === "/") {
if (source.length > 1 && source[1] === "/") {
return "scheme-relative";
}

Expand Down

0 comments on commit f4627e8

Please sign in to comment.