فهرست منبع

Docs: Fix for old examples docs redirect.

Mr.doob 6 ماه پیش
والد
کامیت
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:
     // Check if it matches the old API docs pattern:
     // /docs/api/[lang]/[...any...]/[...path...]/PageName.html
     // /docs/api/[lang]/[...any...]/[...path...]/PageName.html
     // The ".*" part will greedily match any category path.
     // 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]) {
     if (match && match[1]) {
       // match[1] will be "AnimationMixer" or "ColorKeyframeTrack"
       // match[1] will be "AnimationMixer" or "ColorKeyframeTrack"

粤ICP备19079148号