mentions etc can start and end with parenthesis
This commit is contained in:
parent
352ab5bc75
commit
c10c4d1a2f
File diff suppressed because one or more lines are too long
|
@ -2921,12 +2921,14 @@ $('body').on('keyup paste input', 'div.queet-box-syntax', function() {
|
||||||
|| currentMatch[0].slice(-1) == '-'
|
|| currentMatch[0].slice(-1) == '-'
|
||||||
|| currentMatch[0].slice(-1) == ':'
|
|| currentMatch[0].slice(-1) == ':'
|
||||||
|| currentMatch[0].slice(-1) == '.'
|
|| currentMatch[0].slice(-1) == '.'
|
||||||
|| currentMatch[0].slice(-1) == ',') {
|
|| currentMatch[0].slice(-1) == ','
|
||||||
|
|| currentMatch[0].slice(-1) == ')') {
|
||||||
currentMatch[0] = currentMatch[0].slice(0,-1);
|
currentMatch[0] = currentMatch[0].slice(0,-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove any starting spaces from match
|
// don't include these start strings
|
||||||
if(currentMatch[0].substring(0,1) == ' ') {
|
if(currentMatch[0].substring(0,1) == ' '
|
||||||
|
|| currentMatch[0].substring(0,1) == '(') {
|
||||||
currentMatch[0] = currentMatch[0].substring(1);
|
currentMatch[0] = currentMatch[0].substring(1);
|
||||||
}
|
}
|
||||||
else if(currentMatch[0].substring(0,6) == ' ') {
|
else if(currentMatch[0].substring(0,6) == ' ') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user