Skip to content

Commit 932ddd1

Browse files
committed
Format source.
1 parent 6d5b422 commit 932ddd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ function action( type, title, desc, content ) {
319319
notion.save_image = storage.secret.notion.save_image;
320320
notion.schema = storage.secret.notion.schema;
321321
notion.type = storage.secret.notion.type;
322-
notion.Add( title, result.replace( /.jpeg!720/ig, '.jpeg' ).replace( / \S+\)/i, '\n' ), ( result, error ) => {
322+
notion.Add( title, result.replace( /.(png|jpe?g)!\d+/ig, '.$1' ).replace( / \S+\)/i, '\n' ), ( result, error ) => {
323323
// hack code
324324
if ( notion.type == "collection" && notion.schema != storage.secret.notion.schema ) {
325325
storage.secret.notion.schema = notion.schema;

0 commit comments

Comments
 (0)