i want to change src="" value to be empty if src="assets/js/asd2323/script.js"
with regex in twig src value not empty. it has script src
i don't want to empty all my src attribute values within my loops :|
{% for script in site['scripts'] %}
<script type="text/javascript"
{% if script['src'] == matches '{(script.js)}' %}
{% else %}
src="{{ script['src'] }}"
{% endif %}
>
{% endfor %}