File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/components/ConfigMapSecret Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -677,9 +677,12 @@ export function ProtectedConfigMapSecretDetails({
677
677
return selectedTab === 2 ? renderDiffView ( ) : renderForm ( )
678
678
}
679
679
680
- export const convertToValidValue = ( k : any ) : string => {
681
- if ( k !== false && k !== true && k !== '' && ! isNaN ( Number ( k ) ) ) {
682
- return Number ( k ) . toString ( )
680
+ export const convertToValidValue = ( k : any ) : string => {
681
+ if ( k !== false && k !== true && k !== '' && ! isNaN ( Number ( k ) ) ) {
682
+ //Note: all long integers & floating values in "double quotes" with spaces will be handled in this check
683
+ // eg val: "123678765678756764\n" or val: "1234.67856756787676\n" or "1276767634.67856\n" to trim down \n
684
+ const replacePattern = / \s / g
685
+ return k . toString ( ) . replace ( replacePattern , '' )
683
686
}
684
687
return k . toString ( )
685
688
}
You can’t perform that action at this time.
0 commit comments