diff --git a/src/scripts/services/util.js b/src/scripts/services/util.js index b290eb9..7ed77f0 100644 --- a/src/scripts/services/util.js +++ b/src/scripts/services/util.js @@ -85,7 +85,7 @@ class Util { * @returns {boolean} True, if input contains right-to-left characters. */ static containsRTLCharacters(input) { - return new RegExp('^[^' + Util.RTL + ']*?[' + Util.RTL + ']').test(input); + return new RegExp(`^[^${Util.RTL}]*?[${Util.RTL}]`).test(input); } /**