Skip to content

Commit

Permalink
fix(ls): properly escape backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
CalemRoelofsSB committed Dec 20, 2023
1 parent e4cd7ae commit 6f7e673
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 6f7e673

Please sign in to comment.