Skip to content

Commit

Permalink
- F support for Date format reported by helgewessels, Jan 2025
Browse files Browse the repository at this point in the history
Co-authored-by: Jay Bazuzi <jay@bazuzi.com>
Co-authored-by: Llewellyn Falco <llewellyn.falco@gmail.com>
  • Loading branch information
3 people committed Jan 13, 2025
1 parent f7c5699 commit ccf3c9d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
| 2020-09-10T01:23:45.678Z | \d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}\:\d{2}\.\d{3}Z |
| 20210505T091112Z | \d{8}T\d{6}Z |
| 2024-12-17 | \d{4}-\d{2}-\d{2} |
| 2024-12-18T14:04:46.746130Z | \d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}.\d{1,6}Z |
| 2024-12-18T14:04:46.746130Z | \d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}(\.\d{1,9})?Z |
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,17 @@ Example: {'date':"[Date1]"}


Scrubbing for 2024-12-18T14:04:46.746130Z:
RegExScrubber[\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}.\d{1,6}Z]
RegExScrubber[\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}(\.\d{1,9})?Z]
Example: {'date':"[Date1]"}


Scrubbing for 2024-12-18T14:04:46Z:
RegExScrubber[\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}Z]
Example: {'date':"[Date1]"}


Scrubbing for 2024-12-18T14:04:46.746130834Z:
RegExScrubber[\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}(\.\d{1,9})?Z]
Example: {'date':"[Date1]"}


Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public static SupportedFormat[] getSupportedFormats()
"2020-09-10T01:23:45.678Z"),
__("\\d{8}T\\d{6}Z", "20210505T091112Z"),
__("\\d{4}-\\d{2}-\\d{2}", "2024-12-17"),
__("\\d{4}-\\d{1,2}-\\d{1,2}T\\d{1,2}:\\d{2}:\\d{2}.\\d{1,6}Z",
"2024-12-18T14:04:46.746130Z")};
__("\\d{4}-\\d{1,2}-\\d{1,2}T\\d{1,2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z",
"2024-12-18T14:04:46.746130Z", "2024-12-18T14:04:46Z", "2024-12-18T14:04:46.746130834Z")};
}
private static SupportedFormat __(String regex, String... examples)
{
Expand Down

0 comments on commit ccf3c9d

Please sign in to comment.