fix(core.gbapp): Fix KeepText bug.
This commit is contained in:
parent
9083c3e5dc
commit
8a82eade5a
1 changed files with 3 additions and 2 deletions
|
@ -819,10 +819,10 @@ export class GBMinService {
|
||||||
// Spells check the input text before translating,
|
// Spells check the input text before translating,
|
||||||
// keeping fixed tokens as specified in Config.
|
// keeping fixed tokens as specified in Config.
|
||||||
|
|
||||||
const keepText: string = min.core.getParam<string>(
|
const keepText: string = min.core.getParam(
|
||||||
min.instance,
|
min.instance,
|
||||||
'Keep Text',
|
'Keep Text',
|
||||||
null
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
let keepTextList = [];
|
let keepTextList = [];
|
||||||
|
@ -841,6 +841,7 @@ export class GBMinService {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (keepTextList) {
|
if (keepTextList) {
|
||||||
|
keepTextList = keepTextList.filter(p => p.trim() !== '');
|
||||||
let i = 0;
|
let i = 0;
|
||||||
await CollectionUtil.asyncForEach(keepTextList, item => {
|
await CollectionUtil.asyncForEach(keepTextList, item => {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue