1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-05 09:56:22 +00:00

Skip underscore-prefixed folders during theme load.

This commit is contained in:
hacksalot 2015-12-19 08:39:36 -05:00
parent ade60022fd
commit f0a22be731

View File

@ -100,6 +100,7 @@ Definition of the Theme class.
var outFmt = '', isMajor = false;
var portion = pathInfo.dir.replace(tplFolder,'');
if( portion && portion.trim() ) {
if( portion[1] === '_' ) return;
var reg = /^(?:\/|\\)(html|latex|doc|pdf|partials)(?:\/|\\)?/ig;
var res = reg.exec( portion );
if( res ) {