We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c66f6 commit 9827cfdCopy full SHA for 9827cfd
src/Umbraco.Web.UI.Client/src/libs/localization-api/localization.controller.ts
@@ -222,6 +222,10 @@ export class UmbLocalizationController<LocalizationSetType extends UmbLocalizati
222
* @returns {Array<string>} An array of keys.
223
*/
224
getKeysFromString(text: string): Array<string> {
225
+ if (typeof text !== 'string') {
226
+ return [];
227
+ }
228
+
229
const regex = /#\w+/g;
230
const keys = text.match(regex) || [];
231
return keys.map((key) => key.slice(1));
0 commit comments