diff --git a/validator-core/src/main/java/fr/ign/validator/model/FeatureType.java b/validator-core/src/main/java/fr/ign/validator/model/FeatureType.java index 5ea34eda..2bd6f672 100644 --- a/validator-core/src/main/java/fr/ign/validator/model/FeatureType.java +++ b/validator-core/src/main/java/fr/ign/validator/model/FeatureType.java @@ -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; } }