Merge pull request #121758 from benmccann/patch-1
Fix issue number in comment
This commit is contained in:
commit
7c486f3a69
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ import { TerminalBaseLinkProvider } from 'vs/workbench/contrib/terminal/browser/
|
|||
const pathPrefix = '(\\.\\.?|\\~)';
|
||||
const pathSeparatorClause = '\\/';
|
||||
// '":; are allowed in paths but they are often separators so ignore them
|
||||
// Also disallow \\ to prevent a catastropic backtracking case #24798
|
||||
// Also disallow \\ to prevent a catastropic backtracking case #24795
|
||||
const excludedPathCharactersClause = '[^\\0\\s!$`&*()\\[\\]\'":;\\\\]';
|
||||
/** A regex that matches paths in the form /foo, ~/foo, ./foo, ../foo, foo/bar */
|
||||
export const unixLocalLinkClause = '((' + pathPrefix + '|(' + excludedPathCharactersClause + ')+)?(' + pathSeparatorClause + '(' + excludedPathCharactersClause + ')+)+)';
|
||||
|
|
Loading…
Reference in a new issue