Update reference matching pattern

Use a reference as below:
{{reference}}
{{ reference }}