From 3a55a4d5b0cf6e03cadd3db5f7595477a98f9ae9 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Thu, 6 Apr 2023 13:09:15 +0200 Subject: [PATCH] fix: remove quote from sha --- src/AnonymizedFile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AnonymizedFile.ts b/src/AnonymizedFile.ts index 7ceb2bb..697b51e 100644 --- a/src/AnonymizedFile.ts +++ b/src/AnonymizedFile.ts @@ -31,9 +31,9 @@ export default class AnonymizedFile { } async sha() { - if (this._sha) return this._sha; + if (this._sha) return this._sha.replace(/"/g, ""); await this.originalPath(); - return this._sha; + return this._sha?.replace(/"/g, ""); } /**