Skip to content

Commit 3defb86

Browse files
committed
Use replace insted escape
1 parent 8466233 commit 3defb86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/services/gSheet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default class GSheetService {
9595
// set credentials for working
9696
await doc.useServiceAccountAuth({
9797
client_email: config.GOOGLE_SERVICE_ACCOUNT_EMAIL,
98-
private_key: config.GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY.replace(new RegExp('\\\\n', 'g'), '\n'),
98+
private_key: config.GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY.replace(/\\m/g, '\n'),
9999
});
100100
// load doc infos
101101
await doc.loadInfo();

0 commit comments

Comments
 (0)