Skip to content

color hierarchy issue #11

@dwelle

Description

@dwelle

It seems that a nested color affects a sibling color when a color is applied to both strings up a level.

('aaa' + 'bbb'.magenta).red

leads to aaa in red and bbb in magenta, but when doing:

('aaa'.white + 'bbb'.magenta).red

the white bleeds into bbb (making it pink) for no apparent reason:

image

repro:

$ node
> console.log(('aaa'.white + 'aaa'.magenta).red)
> console.log(('aaa'.white + 'aaa'.magenta))
> console.log(('aaa' + 'aaa'.magenta).red)

version: 1.1.92

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