File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
dashboards-reports/server/utils Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export const isValidRelativeUrl = (relativeUrl: string) => {
55
55
export const regexDuration = / ^ ( - ? ) P (? = \d | T \d ) (?: ( \d + ) Y ) ? (?: ( \d + ) M ) ? (?: ( \d + ) ( [ D W ] ) ) ? (?: T (?: ( \d + ) H ) ? (?: ( \d + ) M ) ? (?: ( \d + (?: \. \d + ) ? ) S ) ? ) ? $ / ;
56
56
export const regexEmailAddress = / \S + @ \S + \. \S + / ;
57
57
export const regexReportName = / ^ [ \w \- \s \( \) \[ \] \, \_ \- + ] + $ / ;
58
- export const regexRelativeUrl = / ^ \/ ( _ d a s h b o a r d s \/ a p p | a p p ) \/ ( d a s h b o a r d s | v i s u a l i z e | d i s c o v e r | n o t e b o o k s - d a s h b o a r d s \? v i e w = o u t p u t _ o n l y ) ( [ ? & ] s e c u r i t y _ t e n a n t = .+ | ) # \/ ( v i e w \/ | e d i t \/ ) ? [ ^ \/ ] + $ / ;
58
+ export const regexRelativeUrl = / ^ \/ ( _ p l u g i n \/ k i b a n a \/ | _ d a s h b o a r d s \/ ) ? a p p \/ ( d a s h b o a r d s | v i s u a l i z e | d i s c o v e r | n o t e b o o k s - d a s h b o a r d s \? v i e w = o u t p u t _ o n l y ) ( [ ? & ] s e c u r i t y _ t e n a n t = .+ | ) # \/ ( v i e w \/ | e d i t \/ ) ? [ ^ \/ ] + $ / ;
59
59
60
60
export const validateReport = async (
61
61
client : ILegacyScopedClusterClient ,
You can’t perform that action at this time.
0 commit comments