added preg_match to check that file is indeed a file ending in .js
added preg_match to check that file is indeed a file ending in .js

git-svn-id: e770600730d2d448a717592c3bff6d2b8d474ab5@419 3807eeeb-6ff5-0310-8944-8be069107fe0

ADmad/cakephp,et304383/passbolt_api,gmponos/cakephp,jerems02/cakephp,ADmad/cakephp,Phillaf/cakephp,dakota/cakephp,ndm2/cakephp,jjj117/cakephp,nrother/cakephp,khoimt/cakephp-study,web-player/cakephp,akintoey/cakephp,gmponos/cakephp,thinkingmedia/cakephp,eryw/cakephp,khoimt/cakephp-study,mvdriel/cakephp,cakephp/cakephp,et304383/passbolt_api,tisu2tisu/cakephp,et304383/passbolt_api,timhoeppner/cakephp,Phillaf/cakephp,dakota/cakephp,dakota/cakephp,burriko/cakephp,cakephp-fr/cakephp,mvdriel/cakephp,cakephp-fr/cakephp,yinhe007/cakephp,dkarvounaris/cakephp,ndm2/cakephp,yinhe007/cakephp,jerems02/cakephp,eryw/cakephp,tenkoma/cakephp,HavokInspiration/cakephp,ADmad/cakephp,adopico/cakephp,cakephp/cakephp,bravo-kernel/cakephp,timhoeppner/cakephp,elboletaire/cakephp,petteyg/cakephp,ndm2/cakephp,tgr0ss/cakephp,kumamidori/cakephp,bravo-kernel/cakephp,jeffblack360/cakephp,ionas/cakephp,tenkoma/cakephp,et304383/passbolt_api,dakota/cakephp,Phillaf/cakephp,tenkoma/cakephp,akintoey/cakephp,gmponos/cakephp,et304383/passbolt_api,davidyell/cakephp,kumamidori/cakephp,eryw/cakephp,jeffblack360/cakephp,CVO-Technologies/cakephp,cakephp/cakephp,pbaire/cakephp,elboletaire/cakephp,thinkingmedia/cakephp,pbaire/cakephp,garethellis36/cakephp,dkarvounaris/cakephp,Balachan27/cakephp,ionas/cakephp,ADmad/cakephp,mvdriel/cakephp,timhoeppner/cakephp,web-player/cakephp,tisu2tisu/cakephp,CakeDC/cakephp,CVO-Technologies/cakephp,davidyell/cakephp,tenkoma/cakephp,justinyost/cakephp,petteyg/cakephp,eboominathan/cakephp,pbaire/cakephp,Balachan27/cakephp,tgr0ss/cakephp,HavokInspiration/cakephp,burriko/cakephp,CakeDC/cakephp,akintoey/cakephp,tgr0ss/cakephp,michaelze/cakephp,justinyost/cakephp,erikfig/cakephp,jeffblack360/cakephp,davidyell/cakephp,adopico/cakephp,dkarvounaris/cakephp,adopico/cakephp,erikfig/cakephp,mvdriel/cakephp,berrygoudswaard/cakephp,bravo-kernel/cakephp,nrother/cakephp,jerems02/cakephp,CVO-Technologies/cakephp,ndm2/cakephp,web-player/cakephp,michaelze/cakephp,CakeDC/cakephp,jjj117/cakephp,kumamidori/cakephp,thinkingmedia/cakephp,eboominathan/cakephp,eboominathan/cakephp,yinhe007/cakephp,justinyost/cakephp,cakephp-fr/cakephp,garethellis36/cakephp,Balachan27/cakephp,erikfig/cakephp,petteyg/cakephp,tisu2tisu/cakephp,michaelze/cakephp,elboletaire/cakephp,berrygoudswaard/cakephp,garethellis36/cakephp,berrygoudswaard/cakephp,khoimt/cakephp-study,nrother/cakephp,CakeDC/cakephp,jjj117/cakephp,ionas/cakephp,burriko/cakephp,HavokInspiration/cakephp,petteyg/cakephp,cakephp/cakephp,garethellis36/cakephp