Skip to content

Instantly share code, notes, and snippets.

@with-heart
Created July 24, 2017 00:23
Show Gist options
  • Save with-heart/ea90127c2fceeaca53eb40592d19a94f to your computer and use it in GitHub Desktop.
Save with-heart/ea90127c2fceeaca53eb40592d19a94f to your computer and use it in GitHub Desktop.
override fun shouldFilter(): Boolean {
val ctx = RequestContext.getCurrentContext()
val params = ctx.requestQueryParams ?: return false
val encrypted = params["encryptedValue"] ?: return false
return encryptedStringRegex.matches(encrypted[0])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment