File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ define([
193
193
194
194
href = ( href || '' ) . replace ( / ^ \s + / , '' ) . replace ( / \s + $ / , '' ) ;
195
195
196
- return validateIsUrl ( href ) && ( href . match ( / y o u t u b e \. c o m | y o u t u \. b e / ) || href . match ( / v i m e o \. c o m / ) ) ;
196
+ return validateIsUrl ( href ) && ( href . match ( / y o u t u b e \. c o m | y o u t u \. b e | y o u t u b e - n o c o o k i e \. c o m / ) || href . match ( / v i m e o \. c o m / ) ) ;
197
197
} ,
198
198
$ . mage . __ ( 'Please enter a valid video URL.' )
199
199
) ;
@@ -208,7 +208,7 @@ define([
208
208
href = ( href || '' ) . replace ( / ^ \s + / , '' ) . replace ( / \s + $ / , '' ) ;
209
209
210
210
return validateIsUrl ( href ) && (
211
- href . match ( / y o u t u b e \. c o m | y o u t u \. b e / ) ||
211
+ href . match ( / y o u t u b e \. c o m | y o u t u \. b e | y o u t u b e - n o c o o k i e \. c o m / ) ||
212
212
href . match ( / v i m e o \. c o m / ) ||
213
213
href . match ( / \. ( m p 4 | o g v | w e b m ) (? ! \w ) / )
214
214
) ;
You can’t perform that action at this time.
0 commit comments