Skip to content
Snippets Groups Projects
Unverified Commit d2071bc3 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

twig regexp need double slash escaping

parent ae3c374f
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
{% set readonly = true %} {% set readonly = true %}
{% set value = value|json_encode %} {% set value = value|json_encode %}
{% endif %} {% endif %}
{% if key matches '/^osm\//' %} {% if key matches '/^osm\\//' %}
{% set readonly = true %} {% set readonly = true %}
{% endif %} {% endif %}
<input type="{{ type }}" class="form-control" {{ readonly ? 'readonly="readonly"' : '' }} <input type="{{ type }}" class="form-control" {{ readonly ? 'readonly="readonly"' : '' }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment