Skip to content

Commit

Permalink
Update camara-casing-convention.js
Browse files Browse the repository at this point in the history
  • Loading branch information
VijayKesharwani authored Oct 31, 2023
1 parent 189f787 commit 47a26a7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lint_function/camara-casing-convention.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
function isCamelCase(str) {
// Regular expression to match valid camel case identifiers
const camelCaseRegex = /^[a-z][a-zA-Z0-9]*$/;
return camelCaseRegex.test(str);
}

export default async function (input) {
for (const path in input.paths) {
const pathObject = input.paths[path];
for (const path in input) {
const pathObject = input[path];
console.log("vijay");
for (const method in pathObject) {
const operation = pathObject[method];
Expand All @@ -23,4 +17,10 @@ export default async function (input) {
}
}
}
};
}

function isCamelCase(str) {
// Regular expression to match valid camel case identifiers
const camelCaseRegex = /^[a-z][a-zA-Z0-9]*$/;
return camelCaseRegex.test(str);
}

0 comments on commit 47a26a7

Please sign in to comment.