Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Zhang committed Nov 13, 2024
1 parent ea7f36e commit 0ed014c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openapi3/src/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ function createOAPIEmitter(
}

function validateComponentFixedFieldKey(type: Type, name: string) {
const pattern = /^[a-zA-Z0-9\\.\-\\_]+$/;
const pattern = /^[a-zA-Z0-9\.\-_]+$/;

Check failure on line 1544 in packages/openapi3/src/openapi.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \.
if (!pattern.test(name)) {
program.reportDiagnostic(
createDiagnostic({
Expand Down

0 comments on commit 0ed014c

Please sign in to comment.