Skip to content

Commit 23ec71c

Browse files
committed
fix spelling issue
1 parent 29d1a70 commit 23ec71c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package/lib/compileFunctions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 = /projects\/[\s\S]*\/locations\/[\s\S]*\/connectors\/[\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);

0 commit comments

Comments
 (0)