Skip to content

Commit a4d525d

Browse files
joshuali925zhongnansu
authored andcommitted
Update regex for notebooks reports (#118)
Signed-off-by: Joshua Li <[email protected]>
1 parent 1169fe9 commit a4d525d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboards-reports/server/utils/validationHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const regexDuration =
5757
export const regexEmailAddress = /\S+@\S+\.\S+/;
5858
export const regexReportName = /^[\w\-\s\(\)\[\]\,\_\-+]+$/;
5959
export const regexRelativeUrl =
60-
/^\/(_dashboards\/app|app)\/(dashboards|visualize|discover|notebooks-dashboards\?view=output_only)(\?security_tenant=.+|)#\/(view\/|edit\/)?[^\/]+$/;
60+
/^\/(_dashboards\/app|app)\/(dashboards|visualize|discover|notebooks-dashboards\?view=output_only)([?&]security_tenant=.+|)#\/(view\/|edit\/)?[^\/]+$/;
6161

6262
export const validateReport = async (
6363
client: ILegacyScopedClusterClient,

0 commit comments

Comments
 (0)