Skip to content

do global interpolation #19

@Shuraken007

Description

@Shuraken007

I wanted to hide zero value "0 B/s", conditions are supported.

readonly show_speed="#{?#{!=:#{download_speed},0 B/s},#{download_speed},}"

Problem is, that do_interpolation() expands only first #{download_speed}

Please do global variable expanding
result=${input//$download_interpolation/$download_speed}
vs
result=${input/$download_interpolation/$download_speed}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions