File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -246,11 +246,11 @@ function convertToCliType(str) {
246246 * @returns true if type is string, false otherwise
247247 */
248248function isString ( type ) {
249- switch ( type . toUpperCase ( ) ) {
250- case 'CHAR_STRING ' :
251- case 'OCTET_STRING ' :
252- case 'LONG_CHAR_STRING ' :
253- case 'LONG_OCTET_STRING ' :
249+ switch ( type . toLowerCase ( ) ) {
250+ case 'char_string ' :
251+ case 'octet_string ' :
252+ case 'long_char_string ' :
253+ case 'long_octet_string ' :
254254 return true
255255 default :
256256 return false
@@ -263,10 +263,10 @@ function isString(type) {
263263 * @returns true if type is float, false otherwise
264264 */
265265function isFloat ( type ) {
266- switch ( type ) {
267- case 'FLOAT_SEMI ' :
268- case 'FLOAT_SINGLE ' :
269- case 'FLOAT_DOUBLE ' :
266+ switch ( type . toLowerCase ( ) ) {
267+ case 'float_semi ' :
268+ case 'float_single ' :
269+ case 'float_double ' :
270270 return true
271271 default :
272272 return false
You can’t perform that action at this time.
0 commit comments