Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

Commit d3d0950

Browse files
committed
Tolerate more URI parameters than needed.
Adds compatibility with more-than-TPF interfaces, such as QPF.
1 parent 0e97c99 commit d3d0950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/extractors/ControlsExtractor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ControlsExtractor.prototype._extract = function (metadata, tripleStream, callbac
7878

7979
// Parse the template mappings
8080
var mappings = (controlData.mapping || {})[searchForm] || [];
81-
assert(mappings.length === 3, 'Expected 3 hydra:mappings for ' + searchForm);
81+
assert(mappings.length >= 3, 'Expected at least 3 hydra:mappings for ' + searchForm);
8282
mappings = mappings.reduce(function (mappings, mapping) {
8383
var variable = ((controlData.variable || {})[mapping] || [])[0],
8484
property = ((controlData.property || {})[mapping] || [])[0];

0 commit comments

Comments
 (0)