Skip to content

[bug] Version comparators mess up output of proto pin #2231

@rotu

Description

@rotu

Describe the bug

When specifying a version using the comparator operators < or >, the output is messed up.

Steps to reproduce

> proto pin npm '<11.5'

│ SUCCESS
│ Pinned npm version  to config D:\SonarView\.prototools

> proto pin npm '>11.5'

│ SUCCESS
│ Pinned npm version >11.5</version> to config <path>D:\SonarView\.prototools</path>

Expected behavior

The output should contain Pinned npm version <11.5 to config D:\SonarView\.prototools, resp. Pinned npm version >11.5 to config D:\SonarView\.prototools

Screenshots

Image

It looks like there are some xml-like formatting tags in the output which get messed up by the injection of <,>

Environment

available upon request

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions