Skip to content

Commit e9c30f5

Browse files
committed
minor #20182 Fix typo in copyright comment (chalasr)
This PR was merged into the 3.2-dev branch. Discussion ---------- Fix typo in copyright comment | Q | A | ------------- | --- | Branch? | master | Tests pass? | yes | License | MIT This was merged on 3.2 in #20127 Commits ------- 8619c7f Fix typo in copyright comment
2 parents 117bd4c + 8619c7f commit e9c30f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/JsonResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public static function fromJsonString($data = null, $status = 200, $headers = ar
8989
public function setCallback($callback = null)
9090
{
9191
if (null !== $callback) {
92-
// partially token from http://www.geekality.net/2011/08/03/valid-javascript-identifier/
93-
// partially token from https://github.com/willdurand/JsonpCallbackValidator
92+
// partially taken from http://www.geekality.net/2011/08/03/valid-javascript-identifier/
93+
// partially taken from https://github.com/willdurand/JsonpCallbackValidator
9494
// JsonpCallbackValidator is released under the MIT License. See https://github.com/willdurand/JsonpCallbackValidator/blob/v1.1.0/LICENSE for details.
9595
// (c) William Durand <william.durand1@gmail.com>
9696
$pattern = '/^[$_\p{L}][$_\p{L}\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]*(?:\[(?:"(?:\\\.|[^"\\\])*"|\'(?:\\\.|[^\'\\\])*\'|\d+)\])*?$/u';

0 commit comments

Comments
 (0)