Skip to content

Commit

Permalink
refactor: add match group to defsult regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorNoInternet committed Jun 16, 2024
1 parent 57eb596 commit af33df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub enum MainSubcommand {
#[command(visible_aliases = ["r", "re"])]
Replace {
/// Regex to use for matching numbers
#[arg(short, long, env = "HSIZE_REGEX", default_value = r"(^|\s)\d+(\s|$)")]
#[arg(short, long, env = "HSIZE_REGEX", default_value = r"(^|\s)(\d+)(\s|$)")]
regex: String,

/// Enable multi-line regex searching
Expand Down

0 comments on commit af33df6

Please sign in to comment.