fix task to generate assets array.
fix regexp
clean tests
refactor
v0.3.1
thanks for the patch!