Skip to content

Regex ending in * breaks indenting in block below it #324

Closed
@eddiezane

Description

@eddiezane

It appears a regex ending in * breaks indenting below it in a block.

if (true) {
  var re = /.*/;
console.log('I am broken');
console.log('Because I end in *');
}

if (true) {
  var re = /.*$/;
  console.log('I do not end in *');
  console.log('So I am fine');
}

Can anyone replicate or confirm?

Apologies if this was already reported.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions