fixed data-main attr regex issue