fixed hasInterpolation with one single regex