Skip to content

Commit

Permalink
fix(ls): Fix regex in Swagger 2.0 basePath linting rule
Browse files Browse the repository at this point in the history
  • Loading branch information
CalemRoelofsSB committed Dec 20, 2023
1 parent ed21180 commit e4cd7ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
Expand Down

0 comments on commit e4cd7ae

Please sign in to comment.