@@ -4,7 +4,7 @@ import child_process = require("child_process");
44
55type Author = {
66 displayNames : string [ ] ;
7- preferedName ?: string ;
7+ preferredName ?: string ;
88 emails : string [ ] ;
99} ;
1010
@@ -20,7 +20,7 @@ const authorsPath = path.resolve("../AUTHORS.md");
2020
2121function getKnownAuthors ( ) : Author [ ] {
2222 const segmentRegExp = / \s ? ( [ ^ < ] + ) \s + < ( [ ^ > ] + ) > / g;
23- const preferedNameRegeExp = / \s ? # \s ? ( [ ^ # ] + ) $ / ;
23+ const preferredNameRegeExp = / \s ? # \s ? ( [ ^ # ] + ) $ / ;
2424 const knownAuthors : Author [ ] = [ ] ;
2525
2626 if ( ! fs . existsSync ( mailMapPath ) ) {
@@ -37,13 +37,13 @@ function getKnownAuthors(): Author[] {
3737 author . displayNames . push ( match [ 1 ] ) ;
3838 author . emails . push ( match [ 2 ] ) ;
3939 }
40- if ( match = preferedNameRegeExp . exec ( line ) ) {
41- author . preferedName = match [ 1 ] ;
40+ if ( match = preferredNameRegeExp . exec ( line ) ) {
41+ author . preferredName = match [ 1 ] ;
4242 }
4343 if ( ! author . emails ) continue ;
4444 knownAuthors . push ( author ) ;
45- if ( line . indexOf ( "#" ) > 0 && ! author . preferedName ) {
46- throw new Error ( "Could not match prefered name for: " + line ) ;
45+ if ( line . indexOf ( "#" ) > 0 && ! author . preferredName ) {
46+ throw new Error ( "Could not match preferred name for: " + line ) ;
4747 }
4848 // console.log("===> line: " + line);
4949 // console.log(JSON.stringify(author, undefined, 2));
@@ -52,7 +52,7 @@ function getKnownAuthors(): Author[] {
5252}
5353
5454function getAuthorName ( author : Author ) {
55- return author . preferedName || author . displayNames [ 0 ] ;
55+ return author . preferredName || author . displayNames [ 0 ] ;
5656}
5757
5858function getKnownAuthorMaps ( ) {
0 commit comments