Skip to content

Commit a358296

Browse files
Brian-O-TNABrian-O-TNA
authored andcommitted
Parliamentary Archive references can now include both letters and numbers after the lettercode component e.g. YHC/CL/JO/1/1.
1 parent 5442ea1 commit a358296

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

book-a-reading-room-visit.web/Helper/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ public class Constants
2929
public const string Invalid_Series_Reference = "The series reference you have entered has an invalid format. Series references must start with 1-4 uppercase letters, followed by a space, then 1-4 digits";
3030

3131
public const string Doc_Ref_Regex_General = @"^([^Yy\W][a-zA-Z]{1,3})\s*?(\d{1,4})/(.+)$";
32-
public const string Doc_Ref_Regex_Parly_Archives = @"^(Y[a-zA-Z]{1,3})(\s1)?\/{1}(\d{1,4})/(.+)$";
32+
public const string Doc_Ref_Regex_Parly_Archives = @"^(Y[a-zA-Z]{1,3})(\s1)?\/{1}(\w{1,4})/(.+)$";
3333
}
3434
}

0 commit comments

Comments
 (0)