We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50b7b58 commit 54298e2Copy full SHA for 54298e2
1 file changed
src/vs/platform/contextkey/common/contextkey.ts
@@ -401,7 +401,10 @@ export class ContextKeyRegexExpr implements ContextKeyExpr {
401
}
402
403
public serialize(): string {
404
- return `${this.key} =~ /${this.regexp ? this.regexp.source : '<invalid>'}/${this.regexp.ignoreCase ? 'i' : ''}`;
+ const value = this.regexp
405
+ ? `/${this.regexp.source}/${this.regexp.ignoreCase ? 'i' : ''}`
406
+ : '/invalid/';
407
+ return `${this.key} =~ ${value}`;
408
409
410
public keys(): string[] {
0 commit comments