Skip to content

Commit 72f33d5

Browse files
committed
context keys: regex: serialize prints all regexp flags, not only i
1 parent 8ec9762 commit 72f33d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/contextkey/common/contextkey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ export class ContextKeyRegexExpr implements IContextKeyExpression {
14511451

14521452
public serialize(): string {
14531453
const value = this.regexp
1454-
? `/${this.regexp.source}/${this.regexp.ignoreCase ? 'i' : ''}`
1454+
? `/${this.regexp.source}/${this.regexp.flags}`
14551455
: '/invalid/';
14561456
return `${this.key} =~ ${value}`;
14571457
}

0 commit comments

Comments
 (0)