We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 624bf9b + 32d8a02 commit 5cbbfb8Copy full SHA for 5cbbfb8
lib/rack/contrib/jsonp.rb
@@ -7,8 +7,7 @@ module Rack
7
class JSONP
8
include Rack::Utils
9
10
- VALID_JS_VAR = /[a-zA-Z_$][\w$]*/
11
- VALID_CALLBACK = /\A#{VALID_JS_VAR}(?:\.?#{VALID_JS_VAR})*\z/
+ VALID_CALLBACK = /\A[a-zA-Z_$](?:\.?[\w$])*\z/
12
13
# These hold the Unicode characters \u2028 and \u2029.
14
#
0 commit comments