Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Miscategorises URLs as comments #339

Closed
@azz

Description

@azz

What version of TypeScript are you using?

2.4

What version of typescript-eslint-parser are you using?

ts-2.4 branch

What code were you trying to parse?

const link = <a href="example.com">http://example.com</a>

What did you expect to happen?

//example.com</a> is not a comment

What happened?

  "comments": [
    {
      "type": "Line",
      "value": "example.com</a>",
      "range": [
        40,
        57
      ],
      "loc": {
        "start": {
          "line": 1,
          "column": 40
        },
        "end": {
          "line": 1,
          "column": 57
        }
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions