Skip to content

Commit 2a093e3

Browse files
committed
added more edge cases
1 parent f020cad commit 2a093e3

File tree

1 file changed

+2
-2
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/environment

1 file changed

+2
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/environment/environment.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ export function EnvironmentVariables({ registerBeforeLeaveHandler }: Environment
367367
let value = withoutExport.substring(equalIndex + 1)
368368

369369
const looksLikeBase64Key = /^[A-Za-z0-9+/]+$/.test(potentialKey) && !potentialKey.includes('_')
370-
const valueIsJustPadding = /^=*$/.test(value.trim())
371-
if (looksLikeBase64Key && valueIsJustPadding && potentialKey.length > 10) {
370+
const valueIsJustPadding = /^=+$/.test(value.trim())
371+
if (looksLikeBase64Key && valueIsJustPadding && potentialKey.length > 20) {
372372
return null
373373
}
374374

0 commit comments

Comments
 (0)