Manual:$wgSummarySpamRegex

Details
Same as   except for edit summaries.