Skip to content

Commit

Permalink
Adjust regex to ensure that only matches are replaced #2034
Browse files Browse the repository at this point in the history
  • Loading branch information
maipet committed Jul 29, 2024
1 parent f3e5c1f commit de687e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/alma/fix/identifiers.fix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end
# 856 - Electronic Location and Access (R) - Subfield: $u (R) $3 (NR)
# 1. Indicator: 4 = HTTP
do list(path:"8564?", "var":"$i")
if all_match("$i.u", "^.*[/=]urn:nbn.*")
if all_match("$i.u", "^http.*[/=]urn:nbn.*")
copy_field("$i.u", "urn[].$append")
replace_all("urn[].$last", "(^http.+)(urn:.+$)", "$2")
end
Expand Down

0 comments on commit de687e1

Please sign in to comment.