mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-11 14:45:59 +08:00
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:
commit
876cfada9a
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ var SmartAnnotation = (function() {
|
||||||
}
|
}
|
||||||
_a = decodeURI("%C3%80");
|
_a = decodeURI("%C3%80");
|
||||||
_y = decodeURI("%C3%BF");
|
_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);
|
match = regexp.exec(subtext);
|
||||||
if (match) {
|
if (match) {
|
||||||
return match[2] || match[1];
|
return match[2] || match[1];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue