Skip to content

Commit

Permalink
Added supporting of symbol '-' for concept identity in SDMX
Browse files Browse the repository at this point in the history
  • Loading branch information
artemboyko43 committed Dec 14, 2023
1 parent 503be81 commit 299b70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/quanthub_sdmx_sync/src/QuanthubSdmxClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function datasetIndicators(string $urn, string $dimension_id = '', array
// Parse dimension concept identity:
// 1. Get xxx:xxxx - agency and name
// 2. Id string that located after version (x.x.x) and dot.
if (preg_match('/=([\w_:]+)\([\d.~*+]+\)\.([\w_]+)/', $full_indicator_concept_identity, $matches)) {
if (preg_match('/=([\w\-_:]+)\([\d.~*+]+\)\.([\w_]+)/', $full_indicator_concept_identity, $matches)) {
$indicator_concept_identity = $matches[1];
$indicator_concept_identity_id = $matches[2];
[$indicator_concept_agency, $indicator_concept_name] = explode(':', $indicator_concept_identity);
Expand Down

0 comments on commit 299b70a

Please sign in to comment.