mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-06 22:49:16 +00:00
Preserve exact light fields while culling provably distant occluders, reusing physical tube paths across camera updates and excluding LED emitter data from aligned architectural fingerprints. Cover output equivalence, in-place invalidation, resize tags and hyphenated benchmark chunk hashes. Issue: #788 User-Visible: yes
8 lines
420 B
JavaScript
8 lines
420 B
JavaScript
/** Stable LED chunk identity for request accounting, independent of its hash. */
|
|
export function ledChunkRequestName(url) {
|
|
const name = url.replace(/[?#].*$/, '').replace(/.*\//, '');
|
|
// Rollup's base64url hashes may themselves contain '-' (even first).
|
|
// Capture the known prefix instead of removing a last-hyphen suffix.
|
|
return /^(led-strip-(?:runtime|field|editor))-[\w-]+\.js$/.exec(name)?.[1] ?? null;
|
|
}
|