Skip to content

Get full string for exported JavaScript results #18723

Open
@ydelvis

Description

@ydelvis

Consider the query below, which attempts to get the callee and the associated parameters. The returned string for the parameters is often truncated (sanitized) when the length is longer than 20 characters as seen in the source code. For instance, if the expected full string is bd0be325-86d9-4f16-95fa-b677f7455177, it returns something like bd0be ... 5177, which is not helpful for my project.

While there's a good reason for this behavior, I would really like to be able to export the full string for a follow-up analysis.

import javascript

from CallExpr call, Expr parameters
where 
    parameters = call.getArgument(_)

select call.getCallee(), parameters.toString()

I have seen a similar issue (results abbreviation #9890), but the suggestions do not address my problem.

I would really appreciate any support I can get here. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions