Skip to content

Commit

Permalink
Fix value of matches selectors is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
chunibyocola committed May 27, 2024
1 parent d6506e0 commit 9551bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/public/web-page-translate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,12 @@ export const startWebPageTranslating = ({
if (includeSelectors) {
specifyConfig.includeMode = true;
specifyConfig.includeSelectors = includeSelectors;
specifyConfig.includeMachesSelectors = includeSelectors + includeSelectors.split(',').reduce((t, c, i) => (`${t}${i === 0 ? '' : ','}${c} *`), '');
specifyConfig.includeMachesSelectors = includeSelectors + includeSelectors.split(',').reduce((t, c) => (`${t},${c} *`), '');
}
if (excludeSelectors) {
specifyConfig.excludeMode = true;
specifyConfig.excludeSelectors = excludeSelectors;
specifyConfig.excludeMachesSelectors = excludeSelectors + excludeSelectors.split(',').reduce((t, c, i) => (`${t}${i === 0 ? '' : ','}${c} *`), '');
specifyConfig.excludeMachesSelectors = excludeSelectors + excludeSelectors.split(',').reduce((t, c) => (`${t},${c} *`), '');
}

++startFlag;
Expand Down

0 comments on commit 9551bdb

Please sign in to comment.