File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ export class RushConfiguration {
531531
532532 /**
533533 * [Part of the "gitPolicy" feature.]
534- * A list of regular expressions describing allowable e-mail patterns for Git commits.
534+ * A list of regular expressions describing allowable email patterns for Git commits.
535535 * They are case-insensitive anchored JavaScript RegExps.
536536 * Example: ".*@example \.com"
537537 * This array will never be undefined.
@@ -542,7 +542,7 @@ export class RushConfiguration {
542542
543543 /**
544544 * [Part of the "gitPolicy" feature.]
545- * An example valid e-mail address that conforms to one of the allowedEmailRegExps.
545+ * An example valid email address that conforms to one of the allowedEmailRegExps.
546546 * Example: "foxtrot@example\.com"
547547 * This will never be undefined, and will always be nonempty if gitAllowedEmailRegExps is used.
548548 */
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ export class ChangeAction extends BaseRushAction {
228228 } ) ;
229229 } else {
230230 this . _warnUncommittedChanges ( ) ;
231- // We are done, collect their e-mail
231+ // We are done, collect their email
232232 return this . _detectOrAskForEmail ( ) . then ( ( email : string ) => {
233233 this . _changeFileData . forEach ( ( changeFile : IChangeFile ) => {
234234 changeFile . email = email ;
@@ -393,7 +393,7 @@ export class ChangeAction extends BaseRushAction {
393393 }
394394
395395 /**
396- * Asks the user for their e-mail address
396+ * Asks the user for their email address
397397 */
398398 private _promptForEmail ( ) : Promise < string > {
399399 return this . _prompt ( [
Original file line number Diff line number Diff line change @@ -64,11 +64,12 @@ export class Git {
6464
6565 if ( ! emailResult . result ) {
6666 console . log ( [
67- 'Git email was not specified. Unable to continue .' ,
67+ 'This operation requires that a git email be specified .' ,
6868 '' ,
69- `If you didn't configure your e-mail yet, try something like this:` ,
69+ `If you didn't configure your email yet, try something like this:` ,
7070 '' ,
71- ...GitEmailPolicy . getEmailExampleLines ( rushConfiguration )
71+ ...GitEmailPolicy . getEmailExampleLines ( rushConfiguration ) ,
72+ ''
7273 ] . join ( os . EOL ) ) ;
7374 throw new AlreadyReportedError ( ) ;
7475 }
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export class GitEmailPolicy {
3232
3333 console . log ( 'Checking Git policy for this repository.' + os . EOL ) ;
3434
35- // sanity check; a valid e-mail should not contain any whitespace
35+ // sanity check; a valid email should not contain any whitespace
3636 // if this fails, then we have another issue to report
3737 if ( userEmail . match ( / ^ \S + $ / g) ) {
3838 if ( rushConfiguration . gitAllowedEmailRegExps . length === 0 ) {
@@ -64,8 +64,8 @@ export class GitEmailPolicy {
6464 }
6565
6666 console . log ( [
67- 'Hey there! To keep things tidy, this repo asks you to submit your Git commits using an e-mail like ' ,
68- rushConfiguration . gitAllowedEmailRegExps . length > 1 ? 'one of these patterns:' : 'this pattern:' ,
67+ 'Hey there! To keep things tidy, this repo asks you to submit your Git commits using an email like ' +
68+ ( rushConfiguration . gitAllowedEmailRegExps . length > 1 ? 'one of these patterns:' : 'this pattern:' ) ,
6969 '' ,
7070 ...rushConfiguration . gitAllowedEmailRegExps . map ( ( pattern ) => ' ' + colors . cyan ( pattern ) ) ,
7171 '' ,
You can’t perform that action at this time.
0 commit comments