Skip to content

Commit

Permalink
Merge pull request #1447 from jrmccluskey:regexUpdate
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 626449678
  • Loading branch information
cloud-teleport committed Apr 19, 2024
2 parents d0f0563 + 633e942 commit dba7f52
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public interface WindowedFilenamePolicyOptions extends PipelineOptions {
@TemplateParameter.Text(
order = 4,
optional = true,
regexes = {"^[^A-Za-z0-9/](y+|Y+)[^A-Za-z0-9/]$"},
regexes = {"^[^A-Za-z0-9/]?(y+|Y+)[^A-Za-z0-9/]?$"},
description = "Custom Year Pattern to use for the output directory",
helpText =
"Pattern for formatting the year. Must be one or more of 'y' or 'Y'. Case makes no"
Expand All @@ -80,7 +80,7 @@ public interface WindowedFilenamePolicyOptions extends PipelineOptions {
@TemplateParameter.Text(
order = 5,
optional = true,
regexes = {"^[^A-Za-z0-9/](M+)[^A-Za-z0-9/]$"},
regexes = {"^[^A-Za-z0-9/]?(M+)[^A-Za-z0-9/]?$"},
description = "Custom Month Pattern to use for the output directory",
helpText =
"Pattern for formatting the month. Must be one or more of the 'M' character. The "
Expand All @@ -93,7 +93,7 @@ public interface WindowedFilenamePolicyOptions extends PipelineOptions {
@TemplateParameter.Text(
order = 6,
optional = true,
regexes = {"^[^A-Za-z0-9/](d+|D+)[^A-Za-z0-9/]$"},
regexes = {"^[^A-Za-z0-9/]?(d+|D+)[^A-Za-z0-9/]?$"},
description = "Custom Day Pattern to use for the output directory",
helpText =
"Pattern for formatting the day. Must be one or more of 'd' for day of month or 'D' for"
Expand All @@ -107,7 +107,7 @@ public interface WindowedFilenamePolicyOptions extends PipelineOptions {
@TemplateParameter.Text(
order = 7,
optional = true,
regexes = {"^[^A-Za-z0-9/](H+)[^A-Za-z0-9/]$"},
regexes = {"^[^A-Za-z0-9/]?(H+)[^A-Za-z0-9/]?$"},
description = "Custom Hour Pattern to use for the output directory",
helpText =
"Pattern for formatting the hour. Must be one or more of the 'H' character. The pattern"
Expand All @@ -120,7 +120,7 @@ public interface WindowedFilenamePolicyOptions extends PipelineOptions {
@TemplateParameter.Text(
order = 8,
optional = true,
regexes = {"^[^A-Za-z0-9/](m+)[^A-Za-z0-9/]$"},
regexes = {"^[^A-Za-z0-9/]?(m+)[^A-Za-z0-9/]?$"},
description = "Custom Minute Pattern to use for the output directory",
helpText =
"Pattern for formatting the minute. Must be one or more of the 'm' character. The pattern"
Expand Down

0 comments on commit dba7f52

Please sign in to comment.