fix attribute regex on Lightweight Resources