Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SASS language violation #7

Open
galaxy4public opened this issue Feb 25, 2019 · 0 comments
Open

SASS language violation #7

galaxy4public opened this issue Feb 25, 2019 · 0 comments

Comments

@galaxy4public
Copy link

galaxy4public commented Feb 25, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant