Просмотр исходного кода

Docs: Fix for old examples docs redirect.

Mr.doob 6 месяцев назад
Родитель
Сommit
e8cd1c3d0f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      404.html

+ 1 - 1
404.html

@@ -10,7 +10,7 @@
     // Check if it matches the old API docs pattern:
     // /docs/api/[lang]/[...any...]/[...path...]/PageName.html
     // The ".*" part will greedily match any category path.
-    var match = path.match(/\/docs\/api\/[^\/]+\/.*\/([^\.]+)\.html/);
+    var match = path.match(/\/docs\/(?:api|examples)\/[^\/]+\/.*\/([^\.]+)\.html/);
 
     if (match && match[1]) {
       // match[1] will be "AnimationMixer" or "ColorKeyframeTrack"

粤ICP备19079148号