Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Show warning when git commit input box only contains whitespaces #45254
@joaomoreno after submitting this PR, I realized even though the issue was about line breaks but other white space characters may apply here too. For example, a mix of line breaks and empty spaces...
My current approach is to see if the commit message is all line breaks (using \r?\n), do you think matching whitespaces (\s) instead is a better approach?