Skip to content

SASS language violation #7

@galaxy4public

Description

@galaxy4public

@if (str-slice($query, 0, 2) == '>=') {

On the above line the call to str-slice uses 0 as the index argument, while the language specification explicitly says that index starts at 1: http://sass-lang.com/documentation/Sass/Script/Functions.html#str_slice-instance_method

Note that unlike some languages, the first character in a Sass string is number 1, the second number 2, and so forth.

All SASS/SCSS compilers I tried locally are refusing to work with this file complaining about the index.

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