From 785f8a3384d3843c69cd837d47730cf79e89b29c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 22 Nov 2018 14:38:37 +0800 Subject: [PATCH] sync --- AssetTrait.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AssetTrait.php b/AssetTrait.php index 1d186aad..a0e626f6 100644 --- a/AssetTrait.php +++ b/AssetTrait.php @@ -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; } -- 2.39.2