Skip to content

Commit

Permalink
fix(validator-core): prevent byte order mark issues on tables
Browse files Browse the repository at this point in the history
  • Loading branch information
DD-Arras committed Jan 10, 2025
1 parent b06d637 commit a7a95d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ public AttributeType<?> getIdentifier() {
* @return -1 si undefined
*/
public int indexOf(String name) {
String regexp = "(?i)" + name;
for (int i = 0; i < attributes.size(); i++) {
if (attributes.get(i).getName().matches(regexp)) {
String regexp = "(?i)\ufeff?" + attributes.get(i).getName();
if (name.matches(regexp)) {
return getParentAttributeCount() + i;
}
}
Expand Down

0 comments on commit a7a95d8

Please sign in to comment.