Skip to content
New issue

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

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

Already on GitHub? # to your account

Unexpected behavior with end-of-line tokens #892

Open
1 task done
micaswyers-work opened this issue Aug 28, 2024 · 0 comments
Open
1 task done

Unexpected behavior with end-of-line tokens #892

micaswyers-work opened this issue Aug 28, 2024 · 0 comments

Comments

@micaswyers-work
Copy link

Check for existing issues

  • Completed

Environment

  • macOS
  • Homebrew
  • 3.7.0

Describe the bug / provide steps to reproduce it

Vale Studio Session: https://studio.vale.sh/s/d3c237c0d55224013966f836931cb453

Based on the tokens I've created, I would expect on line 6 the final "and" to be flagged by Vale. It is instead flagging an earlier, non-final, instance of "and."

When I open this session in regex101, it creates this pattern (?i)(?m)(?:and$|or$|[;,]$), and the pattern-matching works as expected, flagging the final "and".

This seems related possibly to Issue 646.
Screenshot 2024-08-28 at 18 52 19

Thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant