File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export const NEETO_RECORD_URL_REGEXP =
53
53
/ ( (?: h t t p | h t t p s ) : \/ \/ ) ? ( w w w \. ) ? [ a - z A - Z 0 - 9 - ] + \. ( n e e t o r e c o r d \. c o m ) \/ ( w a t c h ) \/ ( [ 0 - 9 a - f ] { 20 } ) / ;
54
54
55
55
export const SUPA_DEMO_URL_REGEXP =
56
- / ( (?: h t t p | h t t p s ) : \/ \/ ) ? ( w w w \. ) ? a p p \. ( s u p a d e m o \. c o m ) \/ ( d e m o | e m b e d ) \/ ( [ 0 - 9 a - z ] + ) / ;
56
+ / ( (?: h t t p | h t t p s ) : \/ \/ ) ? ( w w w \. ) ? ( [ a - z A - Z 0 - 9 - ] + ) \. ( [ a - z A - Z 0 - 9 - ] + \. [ a - z A - Z 0 - 9 - ] + ) \/ ( d e m o | e m b e d ) \/ ( [ 0 - 9 a - z ] + ) / ;
57
57
58
58
export const COMBINED_REGEX = new RegExp (
59
59
pluck ( "source" , [
@@ -92,7 +92,9 @@ export const URL_VALIDATORS = {
92
92
supademo : url => {
93
93
const match = url . match ( SUPA_DEMO_URL_REGEXP ) ;
94
94
95
- return match && `https://app.supademo.com/embed/${ match [ 5 ] } ?embed_v=2` ;
95
+ return (
96
+ match && `https://${ match [ 3 ] } .${ match [ 4 ] } /embed/${ match [ 6 ] } ?embed_v=2`
97
+ ) ;
96
98
} ,
97
99
} ;
98
100
You can’t perform that action at this time.
0 commit comments