mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-13 21:47:12 -05:00
context keys: regex: serialize prints all regexp flags, not only i
This commit is contained in:
@@ -1451,7 +1451,7 @@ export class ContextKeyRegexExpr implements IContextKeyExpression {
|
||||
|
||||
public serialize(): string {
|
||||
const value = this.regexp
|
||||
? `/${this.regexp.source}/${this.regexp.ignoreCase ? 'i' : ''}`
|
||||
? `/${this.regexp.source}/${this.regexp.flags}`
|
||||
: '/invalid/';
|
||||
return `${this.key} =~ ${value}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user