Skip to content

Commit

Permalink
update see href
Browse files Browse the repository at this point in the history
  • Loading branch information
RandySun1 committed Nov 20, 2024
1 parent c1de685 commit 8c1cfbf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.ebay.ejmask.api;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class JsonBooleanFieldPatternBuilder extends AbstractRegexPatternBuilder
private static final List<PatternEntity> PATTERN_ENTITY_LIST = Arrays.asList(
/**
* Boolean field with value to be masked
* @link https://regex101.com/r/AEwc99/1
* @see <a href="https://regex101.com/r/AEwc99/1">Regular Expresseion For Testing</a>
*/
new PatternEntity("\\\"(%s)(\\\\*\\\"\\s*:\\s*\\\\*)(\\b(true|TRUE|True|false|FALSE|False)\\b)([^\\\"]{1,3})[^\\\"]*(\\\\?\\\"|)", "\"$1$2\"xxxx\"$5$6")
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class JsonFieldPatternBuilder extends AbstractRegexPatternBuilder {
private static final List<PatternEntity> PATTERN_ENTITY_LIST = Arrays.asList(
/**
* String field with value to be masked
* @link https://regex101.com/r/ZDQWod/5
* @see <a href="https://regex101.com/r/ZDQWod/5">Regular Expresseion For Testing</a>
*/
new PatternEntity("\\\"(%s)(\\\\*\\\"\\s*:\\s*\\\\*\\\")([^\\\"]{1,%d})[^\\\"]*(\\\\?\\\"|)", "\"$1$2$3-xxxx$4")
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class JsonNumericFieldPatternBuilder extends AbstractRegexPatternBuilder
private static final List<PatternEntity> PATTERN_ENTITY_LIST = Arrays.asList(
/**
* Numeric field with value to be masked
* @link https://regex101.com/r/rOeErB/1
* @see <a href="https://regex101.com/r/rOeErB/1">Regular Expresseion For Testing</a>
*/
new PatternEntity("\\\"(%s)(\\\\*\\\"\\s*:\\s*\\\\*)(-?\\b\\d+(\\.\\d+)?(e-?\\d+)?\\b)([^\\\"]{1,2})", "\"$1$2\"xxxx\"$6")
);
Expand Down

0 comments on commit 8c1cfbf

Please sign in to comment.