Don't split tags at em dashes on paste in item tags box

https://github.com/zotero/zotero/pull/5366#discussion_r2245628458
This commit is contained in:
Dan Stillman 2025-07-31 11:22:57 -04:00
parent 5063a8b396
commit 19a848484a

View file

@ -368,7 +368,7 @@
});
event.preventDefault();
}
let delimiters = [',', ';', '--', '—'];
let delimiters = [',', ';'];
let interceptRegex = new RegExp(`\\w+\\s*(${delimiters.join('|')})\\s*\\w+`, 'i');
let match = str.match(interceptRegex);
if (match) {