Skip to content

Add method to detect symbols like +, /, etc. in the queries  #485

@SudhakarKuma

Description

@SudhakarKuma

Description

Add some method to detect symbols in the query. Let us say, we want to know how to use + sign to concatenate two strings. To know this, one can pass queries, like

  • howdoi use + concat strings
  • howdoi use plus concat strings
  • etc.

At present, the outputs for these two are as shown below:

> howdoi use + concat strings
+
> howdoi use plus concat strings
public class Concat {
    String cat(String a, String b) {
        a += b;
        return a;
    }
}

Additional Comments (if any)

Similarly, the results vary significantly for queries like howdoi a divide b, howdoi a / b, etc.

Have you read the Contributing Guidelines on Pull Requests on mkdocs?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions