Fix typo in copyright comment
This commit is contained in:
parent
117bd4c305
commit
8619c7f27d
@ -89,8 +89,8 @@ class JsonResponse extends Response
|
||||
public function setCallback($callback = null)
|
||||
{
|
||||
if (null !== $callback) {
|
||||
// partially token from http://www.geekality.net/2011/08/03/valid-javascript-identifier/
|
||||
// partially token from https://github.com/willdurand/JsonpCallbackValidator
|
||||
// partially taken from http://www.geekality.net/2011/08/03/valid-javascript-identifier/
|
||||
// partially taken from https://github.com/willdurand/JsonpCallbackValidator
|
||||
// JsonpCallbackValidator is released under the MIT License. See https://github.com/willdurand/JsonpCallbackValidator/blob/v1.1.0/LICENSE for details.
|
||||
// (c) William Durand <william.durand1@gmail.com>
|
||||
$pattern = '/^[$_\p{L}][$_\p{L}\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]*(?:\[(?:"(?:\\\.|[^"\\\])*"|\'(?:\\\.|[^\'\\\])*\'|\d+)\])*?$/u';
|
||||
|
Reference in New Issue
Block a user