diff --git a/biblio-tools/examples.http b/biblio-tools/examples.http index 98180f9..9891d17 100644 --- a/biblio-tools/examples.http +++ b/biblio-tools/examples.http @@ -27,7 +27,7 @@ -# crossref/pref +# crossref/pref/1 POST https://biblio-tools.services.inist.fr/v1/crossref/prefixes/expand?indent=true HTTP/1.1 Content-Type: application/json @@ -42,7 +42,7 @@ -# crossref/pref +# crossref/pref/2 POST https://biblio-tools.services.inist.fr/v1/crossref/prefixes/expand?indent=true HTTP/1.1 Content-Type: application/json @@ -54,4 +54,3 @@ { "value": "10.1029/2018jd029272"} ] ### - diff --git a/biblio-tools/v1/crossref/prefixes/expand.ini b/biblio-tools/v1/crossref/prefixes/expand.ini index f8de20e..278277b 100644 --- a/biblio-tools/v1/crossref/prefixes/expand.ini +++ b/biblio-tools/v1/crossref/prefixes/expand.ini @@ -27,7 +27,7 @@ [expand/assign] path = value -value = get('value).split('/').filter(i=>i.match(/^10./)).pop() +value = get('value').split('/').filter(i => i.match(/^10./)).pop() [expand/assign] path = url