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(docs): use string.find(plain) instead of string.match #42

Merged
merged 2 commits into from
Feb 11, 2024

Conversation

Amar1729
Copy link
Contributor

@Amar1729 Amar1729 commented Nov 7, 2023

A root_dir might contain special characters . or - which are not literal in lua patterns. Use the plain argument to string.find to match a plain string rather than a pattern.

https://www.lua.org/manual/5.4/manual.html#pdf-string.find

A `root_dir` might contain special characters `.` or `-` which are not
literal in lua patterns. Use the `plain` argument to `string.find` to
match a plain string rather than a pattern.

https://www.lua.org/manual/5.4/manual.html#pdf-string.find
Copy link
Owner

@cbochs cbochs left a comment

Choose a reason for hiding this comment

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

Thanks for the correction! The help docs are auto-generated so only the README needs updating.

doc/portal.nvim.txt Outdated Show resolved Hide resolved
@cbochs cbochs merged commit 75622af into cbochs:main Feb 11, 2024
3 of 4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants