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

fix deprecation message #383 #384

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

coderaiser
Copy link

Fixes #383

index.js Outdated Show resolved Hide resolved
@@ -133,6 +133,7 @@ const ruleFunction = (expectation, options, context) => {
message,
node: root,
index: getIndexFromLoc(source, err.loc.start),
endIndex: getIndexFromLoc(source, err.loc.start + result.css.length),
});
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do not have erro.loc.end, but we have length of content, this can be endIndex

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