Skip to content

Commit cd4893f

Browse files
committed
style: remove redundant escape in BRANCH_LINE_REGEXP (Style/RedundantRegexpEscape)
1 parent db3ddc0 commit cd4893f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ def change_head_branch(branch_name)
679679
# The branch's full refname
680680
(?:
681681
(?<not_a_branch>\(not[[:blank:]]a[[:blank:]]branch\)) |
682-
(?:\(HEAD[[:blank:]]detached[[:blank:]]at[[:blank:]](?<detached_ref>[^\)]+)\)) |
682+
(?:\(HEAD[[:blank:]]detached[[:blank:]]at[[:blank:]](?<detached_ref>[^)]+)\)) |
683683
(?<refname>[^[[:blank:]]]+)
684684
)
685685

0 commit comments

Comments
 (0)