diff --git a/packages/apidom-parser-adapter-openapi-yaml-3-0/src/adapter.ts b/packages/apidom-parser-adapter-openapi-yaml-3-0/src/adapter.ts index 5ad521b28..e7493b537 100644 --- a/packages/apidom-parser-adapter-openapi-yaml-3-0/src/adapter.ts +++ b/packages/apidom-parser-adapter-openapi-yaml-3-0/src/adapter.ts @@ -1,3 +1,4 @@ + import { propOr, omit } from 'ramda'; import { isNotUndefined } from 'ramda-adjunct'; import { ParseResultElement, createNamespace } from '@swagger-api/apidom-core'; @@ -13,7 +14,7 @@ export { default as mediaTypes } from './media-types.ts'; * @public */ export const detectionRegExp = - /(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.0\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?"openapi"\s*:\s*"(?3\.0\.(?:[1-9]\d*|0))")/m; + /(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.0\.[0123](?:-rc[012])?)\3(?:\s+|$))|(?"openapi"\s*:\s*"(?3\.0\.[0123](?:-rc[012])?)")/m; /** * @public