Skip to content

Cannot find process with capital letters #1

@wofeiwo

Description

@wofeiwo

In this line, FindByName search the name in ps output:

if strings.Contains(line, name) {

but the output already have ToLower

lowercaseOutput := bytes.ToLower(psOutput)

So if you search a process name with capital letters, It will return nil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions