Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23870

Code search does not handle quotations properly

XMLWordPrintable

      Issue Summary

      • When using the code search tool, if a piece of code is included in quotations (in the code itself), search results don't return a result for that code

      Steps to Reproduce

      1. Have a file in your repo with code in quotations:
        	switch code {
        	case codes.OK:
        		logger.Debugw("gRPC response", args...)
        	case codes.InvalidArgument,
        		codes.Aborted,
        		codes.AlreadyExists,
        		codes.Canceled,
        		codes.DeadlineExceeded,
        		codes.NotFound:
        		logger.Warnw("gRPC response", args...)
        	default:
        		logger.Errorw("gRPC response", args...)
        	}
        }
        
      2. Search for the quotations code using BBCloud code search query:
        "gRPC response"
        

      Expected Results

      • The line of code is returned in the results

      Actual Results

      • The line of code is not returned in the results

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              57b7f67f3625 Ben
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: