Skip to content

Commit 12d9e09

Browse files
committed
Simplify regexp
1 parent 628c6da commit 12d9e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/linesOperations/linesOperations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ class BackwardsCompatibleRegExp {
10401040

10411041
export class TitleCaseAction extends AbstractCaseAction {
10421042

1043-
public static titleBoundary = new BackwardsCompatibleRegExp('(?:^|[^\\p{L}\\p{N}\']|(?:(?:^|[^\\p{L}\\p{N}])\'))\\p{L}', 'gmu');
1043+
public static titleBoundary = new BackwardsCompatibleRegExp('(?:^|[^\\p{L}\\p{N}\']|(?:(?:^|\\P{L})\'))\\p{L}', 'gmu');
10441044

10451045
constructor() {
10461046
super({

0 commit comments

Comments
 (0)