Skip to content

Commit ddfcbdb

Browse files
committed
Drop ^ and $ from the clang-format-diff --iregex argument
They are already added by clang-format-diff itself.
1 parent 7022049 commit ddfcbdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apply-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ else # Diff-only.
303303
| "${format_diff_args[@]}" \
304304
-p1 \
305305
-style="$style" \
306-
-iregex='^.*\.(c|cpp|cxx|cc|h|m|mm|js|java)$' \
306+
-iregex='.*\.(c|cpp|cxx|cc|h|m|mm|js|java)' \
307307
> "$patch_dest" \
308308
|| exit 1
309309

0 commit comments

Comments
 (0)