File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments