diff --git a/lib/node_modules/@stdlib/_tools/repl-txt/parse/lib/extract_signature.js b/lib/node_modules/@stdlib/_tools/repl-txt/parse/lib/extract_signature.js index d8ddc5384a4d..8f15daaa8187 100644 --- a/lib/node_modules/@stdlib/_tools/repl-txt/parse/lib/extract_signature.js +++ b/lib/node_modules/@stdlib/_tools/repl-txt/parse/lib/extract_signature.js @@ -48,14 +48,6 @@ function extractSignature( str ) { for ( i = 0; i < str.length; i++ ) { ch = str.charAt( i ); switch ( state ) { - default: - case 'name': - if ( ch === '(' ) { - state = 'params'; - } else { - name += ch; - } - break; case 'params': if ( ch === ')' ) { if ( param && param.name !== '' ) { @@ -89,9 +81,17 @@ function extractSignature( str ) { }; } } + break; + case 'name': + default: + if ( ch === '(' ) { + state = 'params'; + } else { + name += ch; + } + break; } } - return { 'name': name, 'parameters': params,