Add special characters to smart annotation

This commit is contained in:
aignatov-bio 2020-06-29 14:47:35 +02:00
parent 8236598587
commit 630bef1adf

View file

@ -361,7 +361,7 @@ var SmartAnnotation = (function() {
}
_a = decodeURI("%C3%80");
_y = decodeURI("%C3%BF");
regexp = new RegExp(flag + "([A-Za-z" + _a + "-" + _y + "0-9_\\s\+\-\]*)$|" + flag + "([^\\x00-\\xff]*)$", 'gi');
regexp = new RegExp(flag + "([A-Za-z" + _a + "-" + _y + "0-9_/:\\s\+\-\]*)$|" + flag + "([^\\x00-\\xff]*)$", 'gi');
match = regexp.exec(subtext);
if (match) {
return match[2] || match[1];