mattgoldspink / grunt-sencha-dependencies

Grunt task to get the list of Ext.require dependencies in your application
MIT License
32 stars 22 forks source link

ext_core file is assigned to app array in Windows #32

Open frosty5689 opened 10 years ago

frosty5689 commented 10 years ago

In splitArrayIntoThree.js, the RegEx 'regX' is built using the senchaDir global, but that in windows uses '\' which must be escaped for a valid RegEx to be created.

Temporary fix: regX = new RegExp("^" + senchaDir.replace(/\/g, '\'));

dilipramji commented 10 years ago

Actually, the fix doesn't work for me. I had to fix it to compile as follows:

regX = new RegExp("^" + senchaDir.replace(/\//g, '\')); // extra '/' added before 'g'

However the result is still the same: 0 files for ext_core.

When will this be fixed?