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
fix(validator-core): prevent byte order mark issues on tables
  • Loading branch information
DD-Arras authored Jan 10, 2025
2 parents b06d637 + a7a95d8 commit 055eb88
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 055eb88

Please sign in to comment.