From 1fd08e4e4c6bfab7b5bc80bfb9da1f0aa16b56e4 Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Thu, 15 Dec 2016 18:10:58 +0200 Subject: [PATCH] Fix utils/types class name resolution regex. --- tns-core-modules/utils/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tns-core-modules/utils/types.ts b/tns-core-modules/utils/types.ts index b2086484f..d9edfdbd3 100644 --- a/tns-core-modules/utils/types.ts +++ b/tns-core-modules/utils/types.ts @@ -43,7 +43,7 @@ export function verifyCallback(value: any) { } var classInfosMap = new Map(); -var funcNameRegex = /function (.{1,})\(/; +var funcNameRegex = /function ([_a-zA-Z0-9]{1,})\(/; export function getClass(object: Object): string { return getClassInfo(object).name; } @@ -113,4 +113,4 @@ export class ClassInfo { export function toUIString(obj): string { return isNullOrUndefined(obj) ? "" : obj + ""; -} \ No newline at end of file +}