Skip to content

Commit 43e1070

Browse files
committed
docs(analyzer): Fix a typo in a code comment
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
1 parent b1a51f0 commit 43e1070

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

analyzer/src/main/kotlin/PackageManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,15 +418,15 @@ fun parseAuthorString(
418418
var email: String? = null
419419
var homepage: String? = null
420420

421-
// Extract an email address and remove it from the original autgor string.
421+
// Extract an email address and remove it from the original author string.
422422
val e = emailDelimiters.toList().map { Regex.escape(it.toString()) }
423423
val emailRegex = Regex("${e.first()}(.+@.+)${e.last()}")
424424
cleanedAuthor = cleanedAuthor.replace(emailRegex) {
425425
email = it.groupValues.last()
426426
""
427427
}
428428

429-
// Extract a homepage URL and remove it from the original autgor string.
429+
// Extract a homepage URL and remove it from the original author string.
430430
val h = homepageDelimiters.toList().map { Regex.escape(it.toString()) }
431431
val homepageRegex = Regex("${h.first()}(.+(?:://|www|.).+)${h.last()}")
432432
cleanedAuthor = cleanedAuthor.replace(homepageRegex) {

0 commit comments

Comments
 (0)