Menu

Minimun size of comment.

Help
2008-01-23
2013-05-01
  • Juan Salvador

    Juan Salvador - 2008-01-23

    How do I configure it to the minimum size of a message is 10?

    Thanks.

     
    • mmckechney

      mmckechney - 2008-01-23

      That would be handled via a <CommitRequirement> element in the <CommitRequirements> section. If you wanted to check to make sure the message has a length of 10 (any combination of letters, numbers and spaces) you would use something like this:

            <CommitRequirement Description="Length of 10" Regex=".{10}"/>

      If you're not too familiar with regular expression pattern matching, the RegexLib site (http://www.regexlib.com) is a great resource and even includes an online pattern tester.

      I hope this helps.
      Mike

       
      • Juan Salvador

        Juan Salvador - 2008-01-23

        Thanks.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.