File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -716,13 +716,10 @@ function PptxPreview({
716716
717717function toggleMarkdownCheckbox ( markdown : string , targetIndex : number , checked : boolean ) : string {
718718 let currentIndex = 0
719- return markdown . replace (
720- / ^ ( \s * (?: [ - * + ] | \d + [ . ) ] ) + ) \[ ( [ x X ] ) \] / gm,
721- ( match , prefix : string ) => {
722- if ( currentIndex ++ !== targetIndex ) return match
723- return `${ prefix } [${ checked ? 'x' : ' ' } ]`
724- }
725- )
719+ return markdown . replace ( / ^ ( \s * (?: [ - * + ] | \d + [ . ) ] ) + ) \[ ( [ x X ] ) \] / gm, ( match , prefix : string ) => {
720+ if ( currentIndex ++ !== targetIndex ) return match
721+ return `${ prefix } [${ checked ? 'x' : ' ' } ]`
722+ } )
726723}
727724
728725const UnsupportedPreview = memo ( function UnsupportedPreview ( {
You can’t perform that action at this time.
0 commit comments