Skip to content

Commit

Permalink
Merge pull request qubole#60 from mayurdb/REGEX_FIX
Browse files Browse the repository at this point in the history
Fixed email regex
  • Loading branch information
mayurdb authored Jun 29, 2020
2 parents 61c0bd7 + abd6a41 commit 8c17881
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ object EmailReportHelper {
}

def isValid(email: String): Boolean =
"""(\w+)@([\w\.]+)""".r.unapplySeq(email).isDefined
"""(\w+)((\.)(\w+))?@([\w\.]+)""".r.unapplySeq(email).isDefined

def generateReport(appContextString: String, conf: SparkConf): Unit = {
Option(conf.get("spark.sparklens.report.email", null)) match {
Expand Down

0 comments on commit 8c17881

Please sign in to comment.