diff --git a/packages/apidom-ls/src/config/openapi/swagger/lint/base-path--pattern.ts b/packages/apidom-ls/src/config/openapi/swagger/lint/base-path--pattern.ts index ebb1402f43..981500318d 100644 --- a/packages/apidom-ls/src/config/openapi/swagger/lint/base-path--pattern.ts +++ b/packages/apidom-ls/src/config/openapi/swagger/lint/base-path--pattern.ts @@ -10,7 +10,7 @@ const basePathPatternLint: LinterMeta = { message: '"basePath" value MUST be a relative URI Referencing starting with a leading slash (/).', severity: DiagnosticSeverity.Error, linterFunction: 'apilintValueRegex', - linterParams: ['^/(?:[^/s][^s]*)?$'], + linterParams: ['^/(?:[^/\s][^\s]*)?$'], target: 'basePath', marker: 'value', data: {},