|
@@ -246,7 +246,7 @@ export function backspaceText(state,action){
|
|
|
res.saveText.splice(delIndex,1);
|
|
|
}else{
|
|
|
handleLocalDelTag(4,inx,data[inx],res.selecteds[inx]);
|
|
|
- const n = action.text.length>0?1:2;
|
|
|
+ const n = action.text.length>0&&(config.punctuationReg.test(action.text))?1:2;
|
|
|
data.splice(inx,n);
|
|
|
res.selecteds.splice(inx,n);
|
|
|
res.saveText.splice(inx,n);
|