diff --git a/lib/jsduck/js/returns.rb b/lib/jsduck/js/returns.rb index e985eb8016ded5e808c4cc4b5c3dd118ff6a81bc..a770d4afd276fe7aebf634bf04357d6765cf2faf 100644 --- a/lib/jsduck/js/returns.rb +++ b/lib/jsduck/js/returns.rb @@ -79,10 +79,10 @@ module JsDuck :this elsif boolean?(ast) "Boolean" - elsif string?(ast) - "String" elsif regexp?(ast) "RegExp" + elsif string?(ast) + "String" else :other end