Skip to content

Commit 14c1d73

Browse files
committed
Simplify regexp
1 parent c42ab56 commit 14c1d73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,8 +1040,8 @@ class BackwardsCompatibleRegExp {
10401040

10411041
export class TitleCaseAction extends AbstractCaseAction {
10421042

1043-
public static titleBoundary = new BackwardsCompatibleRegExp('(^|[^\\p{L}\\p{N}])[\\p{L}\\p{N}]', 'gmu');
1044-
public static apostrophe = new BackwardsCompatibleRegExp('[\\p{L}\\p{N}]\'[\\p{L}\\p{N}]', 'gmu');
1043+
public static titleBoundary = new BackwardsCompatibleRegExp('(^|[^\\p{L}\\p{N}])\\p{L}', 'gmu');
1044+
public static apostrophe = new BackwardsCompatibleRegExp('\\p{L}\'\\p{L}', 'gmu');
10451045

10461046
constructor() {
10471047
super({

0 commit comments

Comments
 (0)