We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b06d637 + a7a95d8 commit 055eb88Copy full SHA for 055eb88
validator-core/src/main/java/fr/ign/validator/model/FeatureType.java
@@ -260,9 +260,9 @@ public AttributeType<?> getIdentifier() {
260
* @return -1 si undefined
261
*/
262
public int indexOf(String name) {
263
- String regexp = "(?i)" + name;
264
for (int i = 0; i < attributes.size(); i++) {
265
- if (attributes.get(i).getName().matches(regexp)) {
+ String regexp = "(?i)\ufeff?" + attributes.get(i).getName();
+ if (name.matches(regexp)) {
266
return getParentAttributeCount() + i;
267
}
268
0 commit comments