File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = {
2323
2424 validateHandlerProperty ( funcObject , functionName ) ;
2525 validateEventsProperty ( funcObject , functionName ) ;
26- validateVpcConnectorProprety ( funcObject , functionName ) ;
26+ validateVpcConnectorProperty ( funcObject , functionName ) ;
2727
2828 const funcTemplate = getFunctionTemplate (
2929 funcObject ,
@@ -131,13 +131,13 @@ const validateEventsProperty = (funcObject, functionName) => {
131131 }
132132} ;
133133
134- const validateVpcConnectorProprety = ( funcObject , functionName ) => {
134+ const validateVpcConnectorProperty = ( funcObject , functionName ) => {
135135 if ( funcObject . vpc && typeof funcObject . vpc === 'string' ) {
136136 const vpcNamePattern = / p r o j e c t s \/ [ \s \S ] * \/ l o c a t i o n s \/ [ \s \S ] * \/ c o n n e c t o r s \/ [ \s \S ] * / i;
137137 if ( ! vpcNamePattern . test ( funcObject . vpc ) ) {
138138 const errorMessage = [
139139 `The function "${ functionName } " has invalid vpc connection name` ,
140- 'VPC Connector name should follow projects/{project_id}/locations/{region}/connectors/{connector_name}' ,
140+ ' VPC Connector name should follow projects/{project_id}/locations/{region}/connectors/{connector_name}' ,
141141 ' Please check the docs for more info.' ,
142142 ] . join ( '' ) ;
143143 throw new Error ( errorMessage ) ;
You can’t perform that action at this time.
0 commit comments