Skip to content

Commit

Permalink
Make comment more precise #2125
Browse files Browse the repository at this point in the history
As suggested by reviewer

Co-authored-by: Pascal Christoph <[email protected]>
  • Loading branch information
TobiasNx and dr0i authored Jan 16, 2025
1 parent b0d287e commit 4c4a513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/alma/fix/describedBy.fix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if any_match("008", "^\\d{6}\\D.*") # 008/00-05 is the correct form for the cata
substring("@initialCataloguingDate","0","6")
end

if any_match("@initialCataloguingDate","^[0-4]\\d(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])") # Complete dates after 2000
if any_match("@initialCataloguingDate","^[0-4]\\d(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])") # Assume dates from 2000-01-01 to 2049-12-31 ( e.g. matching 491231)
prepend("@initialCataloguingDate","20")
elsif any_match("@initialCataloguingDate","\\d{2}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])") # Complete dates before 2000
prepend("@initialCataloguingDate","19")
Expand Down

0 comments on commit 4c4a513

Please sign in to comment.