Fix an issue with the regex that detects node names

This commit is contained in:
Omar Ajoue 2021-02-15 09:55:28 +01:00 committed by GitHub
parent 118b754449
commit bc66fab041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -961,7 +961,7 @@ export default mixins(
return originalName;
}
const nameMatch = originalName.match(/(.*[a-zA-Z])(\d*)/);
const nameMatch = originalName.match(/(.*\D+)(\d*)/);
let ignore, baseName, nameIndex, uniqueName;
let index = 1;