Skip to content

Commit

Permalink
Merge pull request #2992 from patrick-rodgers/version-4
Browse files Browse the repository at this point in the history
fixing #2931
  • Loading branch information
patrick-rodgers authored Apr 12, 2024
2 parents cf01bf0 + b01d3d4 commit 2dbefa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sp/attachments/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class _Attachments extends _SPCollection<IAttachmentInfo[]> {
*/
public getByName(name: string): IAttachment {
const f = Attachment(this);
f.concat(`('${name}')`);
f.concat(`('${encodePath(name)}')`);
return f;
}

Expand Down

0 comments on commit 2dbefa2

Please sign in to comment.