Skip to content

Commit

Permalink
fix: #46
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Jan 14, 2021
1 parent a985c5e commit f304873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class Store {
}

// Remove "git...#" repo URIs from version strings
if (version) version = version.replace(/git.*#/, '');
// TODO: Validate version is String on ingest
version = version?.replace?.(/git.*#/, '');

const cacheKey = moduleKey(name, version);

Expand Down

0 comments on commit f304873

Please sign in to comment.