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

[pkg/ottl] add LuhnValid function #38353

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

bacherfl
Copy link
Contributor

@bacherfl bacherfl commented Mar 4, 2025

Description

This PR adds the Luhn function which can be used to verify the checksum of e.g. credit card numbers, as discussed in the related issue

Link to tracking issue

Fixes #37880

Testing

Added Unit and E2E tests

Documentation

Described the new function in the readme

bacherfl added 3 commits March 4, 2025 13:36
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
bacherfl added 2 commits March 5, 2025 08:36
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl bacherfl marked this pull request as ready for review March 5, 2025 07:53
@bacherfl bacherfl requested a review from a team as a code owner March 5, 2025 07:53
bacherfl added 3 commits March 6, 2025 13:44
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl bacherfl changed the title [pkg/ottl] add Luhn function [pkg/ottl] add LuhnValid function Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding a mod() function or similar to OTTL
2 participants