From ab272eddbf845ee652c0385c7426469942310166 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 17 Sep 2015 12:23:57 +1000 Subject: [PATCH] Fix js outputting sample delimiter --- assets/js/admin/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/admin/settings.js b/assets/js/admin/settings.js index 647ca0fc..0a1d67d4 100644 --- a/assets/js/admin/settings.js +++ b/assets/js/admin/settings.js @@ -57,7 +57,7 @@ jQuery(document).ready(function($){ val = $(this).val(); if ( val === undefined ) return true; format = $(this).attr("data-example-format"); - example = format.replace("__val__", val); + example = format.replace(/__val__/g, val); $(this).siblings(".example").html(example); });