diff --git a/src/service/output.js b/src/service/output.js index df263ffc8..5bcb5978a 100644 --- a/src/service/output.js +++ b/src/service/output.js @@ -319,7 +319,7 @@ function action( type, title, desc, content ) { notion.save_image = storage.secret.notion.save_image; notion.schema = storage.secret.notion.schema; notion.type = storage.secret.notion.type; - notion.Add( title, result.replace( /.jpeg!720/ig, '.jpeg' ).replace( /, 原文地址 \S+\)/i, '\n' ), ( result, error ) => { + notion.Add( title, result.replace( /.(png|jpe?g)!\d+/ig, '.$1' ).replace( /, 原文地址 \S+\)/i, '\n' ), ( result, error ) => { // hack code if ( notion.type == "collection" && notion.schema != storage.secret.notion.schema ) { storage.secret.notion.schema = notion.schema;