Release 0.0.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createFileLocator, isMediaPath, normalizePath, parseStoragePath } from "./path-utils.js";
|
||||
import { createFileLocator, hasWildcard, isMediaPath, normalizePath, parseStoragePath } from "./path-utils.js";
|
||||
|
||||
const ATTRIBUTE_PATTERNS = [
|
||||
/\b(?:src|href|poster)\s*=\s*["']([^"'<>]+)["']/gi,
|
||||
@@ -31,7 +31,7 @@ export function extractReferencesFromValue(value, source) {
|
||||
rawValue: candidate,
|
||||
normalized: {
|
||||
...direct,
|
||||
targetKind: "local-file"
|
||||
targetKind: hasWildcard(direct.path) ? "wildcard" : "local-file"
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -49,7 +49,7 @@ export function extractReferencesFromValue(value, source) {
|
||||
rawValue: match[1],
|
||||
normalized: {
|
||||
...nested,
|
||||
targetKind: "local-file"
|
||||
targetKind: hasWildcard(nested.path) ? "wildcard" : "local-file"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user