mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(GitHub Node): File Create operation prevent duplicated base64 encoding (#10040)
This commit is contained in:
@@ -114,3 +114,8 @@ export async function githubApiRequestAllItems(
|
||||
} while (responseData.headers.link?.includes('next'));
|
||||
return returnData;
|
||||
}
|
||||
|
||||
export function isBase64(content: string) {
|
||||
const base64regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
|
||||
return base64regex.test(content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user