From bd364bcb934ac4d87d07072fbc56dbb807195c57 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Fri, 23 Oct 2015 16:28:59 +0200 Subject: [PATCH] add note with @Icon() reverse regex useful when copy pasting Zammad html for a layout-reference to covert 's back to @Icons --- app/assets/javascripts/app/lib/app_post/utils.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/javascripts/app/lib/app_post/utils.coffee b/app/assets/javascripts/app/lib/app_post/utils.coffee index b11168bb4..2105e2a1b 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.coffee @@ -594,6 +594,13 @@ class App.Utils num @icon: (name, className = '') -> + # + # reverse regex + # ============= + # + # search: + # replace: <%- @Icon('$1', '$2') %> + # path = if window.svgPolyfill then '' else 'assets/images/icons.svg' ""