-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 hasSuffix alias #10474
Comments
OK, this makes sense to get the symmetry in place. |
Hi! I'm new to open source, but I'm a huge fan of Hugo and would love to tackle this issue. If this hasn't yet been worked on, I'll make sure to follow the contribution guide and try to get a PR in as soon as I'm able to. |
@jfish2 You can see the pattern for how we alias these functions here: https://github.com/gohugoio/hugo/blob/master/tpl/strings/init.go#L98 |
- strings.HasPrefix already has an alias of hasPrefix but strings.HasSuffix has no such alias. - This PR adds a hasSuffix alias to the tpl function with corresponding function documentation. - Adds a Minor update to the hasPrefix function documentation re: keywords and relatedfuncs. Fixes gohugoio#10474
strings.HasPrefix already has an alias of hasPrefix but strings.HasSuffix has no such alias.This PR adds a hasSuffix alias to the tpl function with corresponding function documentation. It also adds a Minor update to the hasPrefix function documentation re: keywords and relatedfuncs. Fixes gohugoio#10474
strings.HasPrefix already has an alias of hasPrefix but strings.HasSuffix has no such alias. This PR adds a hasSuffix alias to the tpl function with corresponding function documentation. It also adds a Minor update to the hasPrefix function documentation re: keywords and relatedfuncs. Completes gohugoio#10474
strings.HasPrefix already has an alias of hasPrefix but strings.HasSuffix has no such alias. This PR adds a hasSuffix alias to the tpl function with corresponding function documentation. It also adds a Minor update to the hasPrefix function documentation re: keywords and relatedfuncs. Completes #10474
strings.HasPrefix already has an alias of hasPrefix but strings.HasSuffix has no such alias. This PR adds a hasSuffix alias to the tpl function with corresponding function documentation. It also adds a Minor update to the hasPrefix function documentation re: keywords and relatedfuncs. Completes gohugoio/hugo#10474
Addressed with #10773 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
strings.HasPrefix
already has an alias ofhasPrefix
butstrings.HasSuffix
has no such alias. This is a request to addhasSuffix
as an alias of the latter. (A project I am porting over to Hugo requires me to use lots of this string and the non-aliased one is a mouthful).The text was updated successfully, but these errors were encountered: