Skip to content

Commit 82347ff

Browse files
committed
✨ Feature: update encodeOutputURL behavior
1 parent 236055d commit 82347ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/Lifecycle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export class Lifecycle extends EventEmitter {
9797
await this.handlePlugins(ctx.helper.afterUploadPlugins, ctx)
9898
let msg = ''
9999
const length = ctx.output.length
100-
const isEncodeOutputURL = ctx.getConfig<Undefinable<boolean>>('settings.encodeOutputURL') !== false
100+
// notice, now picgo builtin uploader will encodeOutputURL by default
101+
const isEncodeOutputURL = ctx.getConfig<Undefinable<boolean>>('settings.encodeOutputURL') === true
101102
for (let i = 0; i < length; i++) {
102103
if (typeof ctx.output[i].imgUrl !== 'undefined') {
103104
msg += isEncodeOutputURL ? handleUrlEncode(ctx.output[i].imgUrl!) : ctx.output[i].imgUrl!

0 commit comments

Comments
 (0)