Skip to content

str-slice is returning the wrong value when $start-at is 1 and $end-at is 0 #760

@boschni

Description

@boschni

Seems like str-slice is returning the wrong value when $start-at is 1 and $end-at is 0 in libsass:

ruby-sass: str-slice("abcd", 1, 0); => ""
ruby-sass: str-slice("abcd", 2, 0); => ""
libsass:   str-slice("abcd", 1, 0); => "a"
libsass:   str-slice("abcd", 2, 0); => ""

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions