コード例 #1
0
 public void Verify(string revision, IMessageSubscriber subscriber)
 {
     this.revision = revision;
     var revisionHashLength = "280bb4850c149a0a33412093cba5d22b4d10bff4".Length;
     if (revision.Length == revisionHashLength && Regex.Match(revision, "[0-9a-fA-F]*").Success)
     {
         subscriber.Published(string.Format("Revision number is a valid Git hash."));
         subscriber.Ask("Pull this revision? (Y/N)", this);
     }
 }