Skip to content

Commit e0f9c4a

Browse files
Apply suggestions from code review
Co-authored-by: Vit Horacek <[email protected]>
1 parent bf3d9a0 commit e0f9c4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/ExpensiMark.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,24 @@ import * as Utils from './utils';
99
type Extras = {
1010
reportIDToName?: Record<string, string>;
1111
accountIDToName?: Record<string, string>;
12+
1213
/**
1314
* @deprecated Replaced with mediaAttributeCachingFn
1415
*/
1516
cacheVideoAttributes?: (vidSource: string, attrs: string) => void;
17+
1618
/**
1719
* @deprecated Replaced with mediaAttributeCache
1820
*/
1921
videoAttributeCache?: Record<string, string>;
22+
2023
/**
2124
* Function used to cache HTML tag attributes during conversion to and from Markdown
2225
* @param mediaSource URI to media source
2326
* @param attrs Additional attributes to be cached
2427
*/
2528
mediaAttributeCachingFn?: (mediaSource: string, attrs: string) => void;
29+
2630
/**
2731
* Key/value cache for HTML tag attributes, where the key is media source URI, value is cached attributes
2832
*/
@@ -700,7 +704,7 @@ export default class ExpensiMark {
700704
regex: /<img[^><]*src\s*=\s*(['"])(.*?)\1(.*?)>(?![^<][\s\S]*?(<\/pre>|<\/code>))/gi,
701705
/**
702706
* @param extras - The extras object
703-
* @param match - The full match
707+
* @param _match - The full match
704708
* @param _g1 - The first capture group (the quote)
705709
* @param imgSource - The second capture group - src attribute value
706710
* @param imgAttrs - The third capture group - any attributes after src

0 commit comments

Comments
 (0)