Fix regex for checking if a parameter is a constant or not.