Correct constant name and comment.

This commit is contained in:
Ray Lee
2025-03-03 13:54:24 -05:00
parent 481cdd1e0a
commit 5b41f5584d

View File

@@ -614,9 +614,9 @@ public class SamlAuthentication implements AuthenticationMethod {
} }
/** /**
* Validate Postgres Column Names * Validate metadata field names
*/ */
protected final String COLUMN_NAME_REGEX = "^[_A-Za-z0-9]+$"; protected final String FIELD_NAME_REGEX = "^[_A-Za-z0-9]+$";
/** /**
* Automatically create a new metadata field for an EPerson * Automatically create a new metadata field for an EPerson
@@ -638,7 +638,7 @@ public class SamlAuthentication implements AuthenticationMethod {
return true; return true;
} }
if (!metadataName.matches(COLUMN_NAME_REGEX)) { if (!metadataName.matches(FIELD_NAME_REGEX)) {
return false; return false;
} }