You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/constructs/anchors.ts
+4-4
Original file line number
Diff line number
Diff line change
@@ -4,31 +4,31 @@ import type { EncodedRegex } from '../types';
4
4
* Start of string anchor. Matches the start of of string. In `multiline` mode, also matches immediately following a newline.
5
5
*/
6
6
exportconststartOfString: EncodedRegex={
7
-
precedence: 'atom',
7
+
precedence: 0,
8
8
pattern: '^',
9
9
};
10
10
11
11
/**
12
12
* End of string anchor. Matches the end of a string. In `multiline` mode, also matches immediately preceding a newline.
13
13
*/
14
14
exportconstendOfString: EncodedRegex={
15
-
precedence: 'atom',
15
+
precedence: 0,
16
16
pattern: '$',
17
17
};
18
18
19
19
/**
20
20
* Word boundary anchor. Matches the position where one side is a word character (alphanumeric or underscore) and the other side is a non-word character (anything else).
21
21
*/
22
22
exportconstwordBoundary: EncodedRegex={
23
-
precedence: 'atom',
23
+
precedence: 0,
24
24
pattern: '\\b',
25
25
};
26
26
27
27
/**
28
28
* Non-word boundary anchor. Matches the position where both sides are word characters.
0 commit comments