Update Library/Homebrew/rubocops/shared/desc_helper.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
c1009247bf
commit
a3ee3650cb
@ -76,7 +76,7 @@ module RuboCop
|
|||||||
|
|
||||||
# Check if the desc contains Unicode characters in the So (emojis or other symbols) range.
|
# Check if the desc contains Unicode characters in the So (emojis or other symbols) range.
|
||||||
if regex_match_group(desc, /\p{So}/)
|
if regex_match_group(desc, /\p{So}/)
|
||||||
desc_problem "Description shouldn't contain emojis or Unicode characters in the So range."
|
desc_problem "Description shouldn't contain Unicode emojis or symbols."
|
||||||
end
|
end
|
||||||
|
|
||||||
# Check if the desc length exceeds maximum length.
|
# Check if the desc length exceeds maximum length.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user