Skip to content

Commit 48e4b6d

Browse files
committed
Diacritic regex update for isHyphenated
1 parent 1322333 commit 48e4b6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/panels/edit/modals/NacoStubCreateModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@
782782
if (dollarKey.a){
783783
// Check for compound last names: hyphenated ("Jacobsen-Smith, Alejandro") or spaced ("Jacobsen Smith, Alejandro")
784784
// Aguirre Rodríguez, Julio, $d 1966-
785-
let isHyphenated = /[A-Z][a-z]+\-[A-Z][a-z]+/.test(dollarKey.a)
785+
let isHyphenated = /[A-Za-zÀ-ž]+\-[A-Za-zÀ-ž]+/.test(dollarKey.a)
786786
let isSpacedCompound = !isHyphenated && /[A-Za-zÀ-ž]+ [A-Za-zÀ-ž]+,/.test(dollarKey.a)
787787
788788
if (isHyphenated || isSpacedCompound){

0 commit comments

Comments
 (0)