Permalink
Show file tree
Hide file tree
8 changes: 7 additions & 1 deletion
8
ee/client/omnichannel/additionalForms/CustomFieldsAdditionalForm.js
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bump version to 3.11.3
- Loading branch information
1 parent
785cbf1
commit 4a0dce9
Showing
17 changed files
with
367 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const replaceVariables = (str, callback) => str.replace(/\{ *([^\{\} ]+)[^\{\}]*\}/gmi, callback); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| /* eslint-env mocha */ | ||
| import assert from 'assert'; | ||
|
|
||
| import { replaceVariables } from '../server/utils.js'; | ||
|
|
||
| describe('Mailer-API', function() { | ||
| describe('translate', () => { | ||
| const i18n = { | ||
| key: 'value', | ||
| }; | ||
|
|
||
| describe('single key', function functionName() { | ||
| it(`should be equal to test ${ i18n.key }`, () => { | ||
| assert.equal(`test ${ i18n.key }`, replaceVariables('test {key}', (match, key) => i18n[key])); | ||
| }); | ||
| }); | ||
|
|
||
| describe('multiple keys', function functionName() { | ||
| it(`should be equal to test ${ i18n.key } and ${ i18n.key }`, () => { | ||
| assert.equal(`test ${ i18n.key } and ${ i18n.key }`, replaceVariables('test {key} and {key}', (match, key) => i18n[key])); | ||
| }); | ||
| }); | ||
|
|
||
| describe('key with a trailing space', function functionName() { | ||
| it(`should be equal to test ${ i18n.key }`, () => { | ||
| assert.equal(`test ${ i18n.key }`, replaceVariables('test {key }', (match, key) => i18n[key])); | ||
| }); | ||
| }); | ||
|
|
||
| describe('key with a leading space', function functionName() { | ||
| it(`should be equal to test ${ i18n.key }`, () => { | ||
| assert.equal(`test ${ i18n.key }`, replaceVariables('test { key}', (match, key) => i18n[key])); | ||
| }); | ||
| }); | ||
|
|
||
| describe('key with leading and trailing spaces', function functionName() { | ||
| it(`should be equal to test ${ i18n.key }`, () => { | ||
| assert.equal(`test ${ i18n.key }`, replaceVariables('test { key }', (match, key) => i18n[key])); | ||
| }); | ||
| }); | ||
|
|
||
| describe('key with multiple words', function functionName() { | ||
| it(`should be equal to test ${ i18n.key }`, () => { | ||
| assert.equal(`test ${ i18n.key }`, replaceVariables('test {key ignore}', (match, key) => i18n[key])); | ||
| }); | ||
| }); | ||
|
|
||
| describe('key with multiple opening brackets', function functionName() { | ||
| it(`should be equal to test {${ i18n.key }`, () => { | ||
| assert.equal(`test {${ i18n.key }`, replaceVariables('test {{key}', (match, key) => i18n[key])); | ||
| }); | ||
| }); | ||
|
|
||
| describe('key with multiple closing brackets', function functionName() { | ||
| it(`should be equal to test ${ i18n.key }}`, () => { | ||
| assert.equal(`test ${ i18n.key }}`, replaceVariables('test {key}}', (match, key) => i18n[key])); | ||
| }); | ||
| }); | ||
|
|
||
| describe('key with multiple opening and closing brackets', function functionName() { | ||
| it(`should be equal to test {${ i18n.key }}`, () => { | ||
| assert.equal(`test {${ i18n.key }}`, replaceVariables('test {{key}}', (match, key) => i18n[key])); | ||
| }); | ||
| }); | ||
| }); | ||
| }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "version": "3.11.2" | ||
| "version": "3.11.3" | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.