Skip to content

[Bug]: transform.filter.code: /./ matches empty files #5784

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

REPL

What is expected?

/./.test("\n".repeat(10)) returns false so I expect the output to be empty.

What is actually happening?

The filter is matched and the output is not empty.

System Info

REPL 1.0.0-beta.31

Any additional comments?

On the other hand, /./s.test("\n".repeat(10)) returns true so I expect to have the current behavior.

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions