Skip to content

Commit

Permalink
fix file extension regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Sep 21, 2019
1 parent 6b0e89a commit 97c2e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/common/src/main/HTTPRequest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ object HTTPRequest {
ua.contains("facebookexternalhit/") || ua.contains("twitterbot/")
}

private[this] val fileExtensionRegex = """\.(?<!^\.)[a-z0-9]{2,4}$""".r
private[this] val fileExtensionRegex = """\.(?<!^\.)[a-zA-Z0-9]{2,4}$""".r

def hasFileExtension(req: RequestHeader) = fileExtensionRegex.find(req.path)

Expand Down

0 comments on commit 97c2e84

Please sign in to comment.