summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/transcoder.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-03-28 18:05:31 +0200
committerChristophe Simonis <chs@odoo.com>2017-03-28 18:05:31 +0200
commit2df5faa551112d0bde9c30a8e6f0536fb7bf21d3 (patch)
treee0b09fe7efc2f983075ba742aed97daa5245dd39 /addons/web_editor/static/src/js/transcoder.js
parentad811b19a0b88366cfe2cd28c2cd871d27107408 (diff)
parent2f68e9e93a11f37241c1be2835e74ff8be95db1d (diff)
[MERGE] forward port branch saas-14 up to 2f68e9e93a1
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
-rw-r--r--addons/web_editor/static/src/js/transcoder.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/transcoder.js b/addons/web_editor/static/src/js/transcoder.js
index fa7b4023377..05068972532 100644
--- a/addons/web_editor/static/src/js/transcoder.js
+++ b/addons/web_editor/static/src/js/transcoder.js
@@ -131,7 +131,7 @@ var font_to_img = function ($editable) {
var icon, content;
_.find(widget.fontIcons, function (font) {
return _.find(widget.getCssSelectors(font.parser), function (css) {
- if ($font.is(css[0].replace(/::?before$/, ''))) {
+ if ($font.is(css[0].replace(/::?before/g, ''))) {
icon = css[2].split("-").shift();
content = css[1].match(/content:\s*['"]?(.)['"]?/)[1];
return true;