EUDAT-B2SHARE / b2share

B2SHARE software for the EUDAT CDI services.
https://b2share.eudat.eu
GNU General Public License v2.0
35 stars 33 forks source link

Fix the parsing of ePIC PIDs #1919

Closed gcakir closed 1 year ago

gcakir commented 1 year ago

If the variable hdl is, for example, http://hdl.handle.net/21.T11975/b85684f9-5e24-4731-a6e2-94a8d277b838, with the original code with [3:], the output would be an empty string. With the updated code with [-2:], the output would be: 21.T11975/b85684f9-5e24-4731-a6e2-94a8d277b838

@hjhsalo @JohannesLares

hjhsalo commented 1 year ago

Looks good to me.