Skip to content

Commit

Permalink
Update taskpane.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 11, 2024
1 parent 1ed8d5d commit bb536d0
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/word-plugin/src/taskpane/taskpane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,11 @@ export async function insertTextIntoRange() {
for (let i = 0; i < words.items.length; ++i) {
const word = words.items[i];

if (word.text !== "Lorem") {
continue;
}
// if (word.text !== "Lorem") {
// continue;
// }

// const charRangeCollection = word.search("?", {
// matchWildcards: true,
// matchCase: false,
// ignoreSpace: true,
// ignorePunct: true,
// matchPrefix: false,
// matchSuffix: false,
// matchWholeWord: false,
// });
const charRangeCollection = word.search("*", {
const charRangeCollection = word.search("?", {
matchWildcards: true,
matchCase: false,
ignoreSpace: true,
Expand All @@ -80,6 +71,18 @@ export async function insertTextIntoRange() {
matchSuffix: false,
matchWholeWord: false,
});
// const charRangeCollection = word.search("*", {
// matchWildcards: true,
// matchCase: false,
// ignoreSpace: true,
// ignorePunct: true,
// matchPrefix: false,
// matchSuffix: false,
// matchWholeWord: false,
// });

//const charRangeCollection = word.getRange().split([""]);

charRangeCollectionCache.push(charRangeCollection);
}
}
Expand Down Expand Up @@ -110,6 +113,7 @@ export async function insertTextIntoRange() {
}
} else {
//charRanges.items[z].font.bold = false;
break;
}
}
}
Expand Down

0 comments on commit bb536d0

Please sign in to comment.