Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123727
D8428.id30436.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
608 B
Subscribers
None
D8428.id30436.diff
View Options
diff --git a/swh/indexer/metadata_dictionary/npm.py b/swh/indexer/metadata_dictionary/npm.py
--- a/swh/indexer/metadata_dictionary/npm.py
+++ b/swh/indexer/metadata_dictionary/npm.py
@@ -276,6 +276,10 @@
# does not allow accessing that from metadata mappings.
# (Plus, an hypothetical license mapping would eventually pick it up)
return
+ if " " in s:
+ # Either an SPDX expression, or unusable data
+ # TODO: handle it
+ return
return SPDX + s
def normalize_keywords(self, lst):
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 19 2024, 10:09 PM (11 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3219074
Attached To
D8428: npm: Do not generate URIs with spaces in them
Event Timeline
Log In to Comment