From 140c366340ac66ab27fba797fac1490770764c6c Mon Sep 17 00:00:00 2001 From: kurylak Date: Sat, 22 May 2021 16:53:45 +0200 Subject: [PATCH] Add phpspy coloring #201 --- webapp/javascript/util/format.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/webapp/javascript/util/format.js b/webapp/javascript/util/format.js index c328f50781..60d906f399 100644 --- a/webapp/javascript/util/format.js +++ b/webapp/javascript/util/format.js @@ -134,12 +134,13 @@ export class ObjectsFormatter { export function getPackageNameFromStackTrace(spyName, stackTrace) { // TODO: actually make sure these make sense and add tests const regexpLookup = { + default: /^(?(.*\/)*)(?.*)(?.*)$/, + dotnetspy: /^(?.+)\.(.+)\.(.+)\(.*\)$/, + ebpfspy: /^(?.+)$/, + gospy: /^(?(.*\/)*)(?.*)(?.*)$/, + phpspy: /^(?(.*\/)*)(?.*\.php+)(?.*)$/, pyspy: /^(?(.*\/)*)(?.*\.py+)(?.*)$/, rbspy: /^(?(.*\/)*)(?.*\.rb+)(?.*)$/, - gospy: /^(?(.*\/)*)(?.*)(?.*)$/, - ebpfspy: /^(?.+)$/, - dotnetspy: /^(?.+)\.(.+)\.(.+)\(.*\)$/, - default: /^(?(.*\/)*)(?.*)(?.*)$/, }; if (stackTrace.length === 0) {