We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm implementing a plugin that applies textlint fixes, and noticed that the range is being incorrectly computed.
See the example below:
$ echo '2021-07-02 (Thursday)' | textlint --format json --config samples/.textlintrc.json --stdin --stdin-filename file.md | jq [ { "messages": [ { "type": "lint", "ruleId": "date-weekday-mismatch", "message": "2021-07-02 (Thursday) mismatch weekday.\n2021-07-02 (Thursday) => 2021-07-02 (Friday)", "index": 12, "line": 1, "column": 13, "severity": 2, "fix": { "range": [ 12, 18 ], "text": "Friday" } } ], "filePath": "<markdown>" } ]
The range should be within 8 characters (Thursday), instead of 6. If I apply the suggested range, I'll end up with Fridayay.
Fridayay
The text was updated successfully, but these errors were encountered:
fix: correct replace range
1e8045a
fix #2
fix: correct replace range (#3)
340fc2b
* fix: correct replace range fix #2 * CI: use GitHub Actions
Thanks for report! I've fixed in https://github.com/textlint-rule/textlint-rule-date-weekday-mismatch/releases/tag/v1.0.6
Sorry, something went wrong.
Thanks for acting so quickly! <3 <3 <3
Successfully merging a pull request may close this issue.
I'm implementing a plugin that applies textlint fixes, and noticed that the range is being incorrectly computed.
See the example below:
The range should be within 8 characters (Thursday), instead of 6. If I apply the suggested range, I'll end up with
Fridayay
.The text was updated successfully, but these errors were encountered: