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

add support for includes function #27518

Closed
wants to merge 1 commit into from
Closed

Conversation

njuCZ
Copy link
Contributor

@njuCZ njuCZ commented Jan 15, 2021

fix #27198

@codecov
Copy link

codecov bot commented Jan 15, 2021

Codecov Report

Merging #27518 (0caf5ed) into master (bd6b973) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
lang/funcs/string.go 100.00% <100.00%> (ø)
lang/functions.go 96.29% <100.00%> (+0.02%) ⬆️
dag/marshal.go 61.90% <0.00%> (-1.59%) ⬇️

@jgrumboe
Copy link

@njuCZ
Wouldn't "includes" be a better functionname in analogy to "contains"?
"Include" sounds more imperative than "includes" which sounds like a question, which the function actually is.

@njuCZ
Copy link
Contributor Author

njuCZ commented Jan 25, 2021

@jgrumboe Thanks for the suggestions. I will changed to includes soon

@njuCZ njuCZ changed the title add support for include function add support for includes function Jan 25, 2021
@njuCZ
Copy link
Contributor Author

njuCZ commented Jan 25, 2021

@jgrumboe I have refactor it to includes.

Base automatically changed from master to main February 24, 2021 18:01
@orgads
Copy link

orgads commented Feb 17, 2022

Is anything blocking this PR from being merged, except rebase?

@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

@kmoe kmoe self-assigned this Nov 8, 2022
@Cliftonz
Copy link
Contributor

@njuCZ Is anything blocking this PR?

@crw
Copy link
Contributor

crw commented Apr 19, 2023

@Cliftonz I am checking in with the team. Will put this back on the queue for triage. If the core team gives the thumbs-up, then @njuCZ would need to rebase (and fix any potential feedback) before it could be merged. Thanks!

@Cliftonz
Copy link
Contributor

@crw Thank you! If @njuCZ is unavailable I am happy to take this over.

Copy link
Member

@kmoe kmoe left a comment

Choose a reason for hiding this comment

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

Happy to merge this if the name of the function is changed to strcontains, to match our naming conventions.

@Cliftonz
Copy link
Contributor

@kmoe Is there any issue if I make a new pull request as OP is not responding?

@digital-content-events
Copy link

📄 Content Checks

Updated: Fri, 21 Apr 2023 06:10:49 GMT

Found 1 error(s)

docs/language/functions/strcontains.mdx

Position Description Rule
1:1-1:1 This file is not present in the nav data file at data/language-nav-data.json. Either add a path that maps to this file in the nav data or remove the file. If you want the page to exist but not be linked in the navigation, add a hidden property to the associated nav node. no-unlinked-pages

@njuCZ
Copy link
Contributor Author

njuCZ commented Apr 21, 2023

@Cliftonz thanks if you can take over this PR. (It seems the CI needs to deploy a github app and I can't do that for current account). I will close it for now.

@njuCZ njuCZ closed this Apr 21, 2023
@Cliftonz
Copy link
Contributor

@njuCZ No problem, thank you for getting this going!

@github-actions
Copy link
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a String contains or includes function that can replace the can(regex(..., ...)) pattern
9 participants