Skip to content

Commit 1af0fd3

Browse files
nunoplopesgithub-actions[bot]
authored andcommitted
Automerge: fix #163478: false positive in the github actions undef warning
Happened with 'undef,' -- comma not being recognized as a word boundary
2 parents 680a19b + 4e996e5 commit 1af0fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/git/code-format-helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def format_run(self, changed_files: List[str], args: FormatArgs) -> Optional[str
391391
return None
392392

393393
# Use git to find files that have had a change in the number of undefs
394-
regex = "([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)"
394+
regex = "([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9,_-]|UndefValue::get)"
395395
cmd = ["git", "diff", "-U0", "--pickaxe-regex", "-S", regex]
396396

397397
if args.start_rev and args.end_rev:

0 commit comments

Comments
 (0)