sync
authorAlan Knowles <alan@roojs.com>
Thu, 22 Nov 2018 06:38:37 +0000 (14:38 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 22 Nov 2018 06:38:37 +0000 (14:38 +0800)
AssetTrait.php

index 1d186aa..a0e626f 100644 (file)
@@ -32,7 +32,9 @@ trait Pman_Core_AssetTrait {
                     $ar = array_merge($ar ,  glob($dir . '/'. $f));
                     continue;
                 }
-                
+                if (!preg_match('/\.js$/', $f)) {
+                    $f .= ".js";
+                }
                 $ar[] = $dir .'/'. $f;
             }