Merge pull request #2693 from aignatov-bio/ai-sci-4539-add-special-characters-to-smart-annotation

Add special characters to smart annotation [SCI-4539]
This commit is contained in:
aignatov-bio 2020-07-01 09:03:30 +02:00 committed by GitHub
commit 876cfada9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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];