Added links to wiki for FormatCreditCard

This commit is contained in:
Erik C. Thauvin 2023-03-18 12:44:20 -07:00
parent b27b0965af
commit 0f62f9cb5b
3 changed files with 7 additions and 6 deletions

View file

@ -35,11 +35,11 @@ This project provides a collection of template renderers.
## Format Renderers ## Format Renderers
| Renderer | Description | | Renderer | Description |
|:--------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------| |:--------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------|
| `rife.render.formatCreditcard` | Formats a template credit card number value to the last 4 digits | | [rife.render.formatCreditcard](https://github.com/rife2/rife2-template-renderers/wiki/rife.render.FormatCreditCard) | Formats a template credit card number value to the last 4 digits |
| [rife.render.ShortenUrl](https://github.com/rife2/rife2-template-renderers/wiki/rife.render.ShortenUrl) | Shortens a template value using [is./gd](https://is.gd/) | | [rife.render.ShortenUrl](https://github.com/rife2/rife2-template-renderers/wiki/rife.render.ShortenUrl) | Shortens a template value using [is./gd](https://is.gd/) |
| [rife.render.Uptime](https://github.com/rife2/rife2-template-renderers/wiki/rife.render.Uptime) | Renders the server uptime in various customizable formats | | [rife.render.Uptime](https://github.com/rife2/rife2-template-renderers/wiki/rife.render.Uptime) | Renders the server uptime in various customizable formats |
## Text Renderers ## Text Renderers

View file

@ -31,6 +31,7 @@ import rife.template.ValueRenderer;
* </pre> * </pre>
* *
* @author <a href="https://erik.thauvin.net/">Erik C. Thauvin</a> * @author <a href="https://erik.thauvin.net/">Erik C. Thauvin</a>
* @see <a href="https://github.com/rife2/rife2-template-renderers/wiki/rife.render.FormatCreditCard">rife.render.FormatCreditCard</a>
* @since 1.0 * @since 1.0
*/ */
public class FormatCreditCard implements ValueRenderer { public class FormatCreditCard implements ValueRenderer {

View file

@ -81,7 +81,7 @@ public final class RenderUtils {
/** /**
* Returns the last 4 digits a credit card number. The number must satisfy the Luhn algorithm. * Returns the last 4 digits a credit card number. The number must satisfy the Luhn algorithm.
* Non-digits are stripped from the number. * Non-digits are stripped from the number.
* *Th
* @param src the credit card number * @param src the credit card number
* @return the last 4 digits of the credit card number or empty * @return the last 4 digits of the credit card number or empty
*/ */