Skip to content

Typescript/Javascript expressions embedded in template strings not recognized #372

@jamestelfer

Description

@jamestelfer

Describe the bug
JavaScript template strings can include expressions:

const s = `foo ${bar.toString()}`

When using the Javascript or Typescript matchers, these expressions cannot be matched. When using the Generic matcher, it works.

Reproducing

bit.ly/3QEaAfy

Expected behavior

I expect to be able to match on expressions within template strings.

Additional context

It is possible for me to "just" use the Generic matcher when transforming these files, but I'm not sure what other potential issues I might cause myself by doing so, and it makes me wonder whether I should be using the Typescript matcher at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions