File tree 1 file changed +5
-2
lines changed
src/routes/base-converter
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 14
14
}
15
15
16
16
function parseBinaryNotation (input ) {
17
+ // Trim whitespace
18
+ input = input .replace (/ [ ] / g , " " );
19
+
17
20
const bytes = [];
18
21
while (input .length > 0 ) {
19
22
const byte = input .substring (0 , 8 );
54
57
</InputField >
55
58
56
59
<InputField label =" 32-bits (float)" >
57
- <input type ="number " value ={floatValue } on:input ={(e ) => onIeeeValueChanged (e , true )} />
60
+ <input type ="text " value ={floatValue } on:input ={(e ) => onIeeeValueChanged (e , true )} max = " 32 " />
58
61
</InputField >
59
62
60
63
<InputField label =" 64-bits (double)" >
61
- <input type ="number " value ={doubleValue } on:input ={(e ) => onIeeeValueChanged (e , false )} />
64
+ <input type ="text " value ={doubleValue } on:input ={(e ) => onIeeeValueChanged (e , false )} max = " 64 " />
62
65
</InputField >
63
66
64
67
<style >
You can’t perform that action at this time.
0 commit comments