Skip to content

Commit c593f40

Browse files
Merge pull request Expensify#66685 from nkdengineer/fix/63711-bump-expensify-common-version
bump expensify-common 2.0.147
2 parents 1350024 + c5d6722 commit c593f40

4 files changed

Lines changed: 13 additions & 17 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"date-fns-tz": "^3.2.0",
130130
"dom-serializer": "^0.2.2",
131131
"domhandler": "^4.3.0",
132-
"expensify-common": "^2.0.142",
132+
"expensify-common": "2.0.147",
133133
"expo": "53.0.7",
134134
"expo-asset": "^11.1.2",
135135
"expo-av": "^15.1.5",

src/hooks/useHtmlPaste/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ const useHtmlPaste: UseHtmlPaste = (textInputRef, preHtmlPasteCallback, isActive
9494
*/
9595
const handlePastedHTML = useCallback(
9696
(html: string) => {
97-
paste(Parser.htmlToMarkdown(html, {}, maxLength));
97+
paste(Parser.htmlToMarkdown(html, {}));
9898
},
99-
[paste, maxLength],
99+
[paste],
100100
);
101101

102102
/**

src/libs/Parser.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,12 @@ type Extras = {
4545
};
4646

4747
class ExpensiMarkWithContext extends ExpensiMark {
48-
htmlToMarkdown(htmlString: string, extras?: Extras, maxBodyLength?: number): string {
49-
return super.htmlToMarkdown(
50-
htmlString,
51-
{
52-
reportIDToName: extras?.reportIDToName ?? reportIDToNameMap,
53-
accountIDToName: extras?.accountIDToName ?? accountIDToNameMap,
54-
cacheVideoAttributes: extras?.cacheVideoAttributes,
55-
},
56-
maxBodyLength,
57-
);
48+
htmlToMarkdown(htmlString: string, extras?: Extras): string {
49+
return super.htmlToMarkdown(htmlString, {
50+
reportIDToName: extras?.reportIDToName ?? reportIDToNameMap,
51+
accountIDToName: extras?.accountIDToName ?? accountIDToNameMap,
52+
cacheVideoAttributes: extras?.cacheVideoAttributes,
53+
});
5854
}
5955

6056
htmlToText(htmlString: string, extras?: Extras): string {

0 commit comments

Comments
 (0)