add the source property for regex patterns