File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/sim/app/workspace/[workspaceId]/settings/components/credentials Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -913,7 +913,7 @@ export function CredentialsManager() {
913913 const text = e . clipboardData . getData ( 'text' ) . trim ( )
914914 if ( ! text ) return
915915
916- const lines = text . split ( '\n' ) . filter ( ( line ) => line . trim ( ) )
916+ const lines = text . split ( / \r ? \n / ) . filter ( ( line ) => line . trim ( ) )
917917 if ( lines . length === 0 ) return
918918
919919 const inputType = ( e . target as HTMLInputElement ) . getAttribute ( 'data-input-type' ) as
@@ -945,7 +945,7 @@ export function CredentialsManager() {
945945 const text = e . clipboardData . getData ( 'text' ) . trim ( )
946946 if ( ! text ) return
947947
948- const lines = text . split ( '\n' ) . filter ( ( line ) => line . trim ( ) )
948+ const lines = text . split ( / \r ? \n / ) . filter ( ( line ) => line . trim ( ) )
949949 if ( lines . length === 0 ) return
950950
951951 const inputType = ( e . target as HTMLInputElement ) . getAttribute ( 'data-input-type' ) as
You can’t perform that action at this time.
0 commit comments