Skip to content

Commit 6f9d22c

Browse files
authored
Oops, properly escape the \d (#159)
1 parent 5ab0aa4 commit 6f9d22c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ts/core/features/random-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {Roam} from 'src/core/roam/roam'
55
import {Keyboard} from 'src/core/common/keyboard'
66
import {KEY_TO_CODE} from 'src/core/common/keycodes'
77

8-
const DEFAULT_EXCLUDE_PATTERN = ', 20dd$|\\[\\[interval|\\[\\[factor'
8+
const DEFAULT_EXCLUDE_PATTERN = ', 20\\d\\d$|\\[\\[interval|\\[\\[factor'
99

1010
const getRandomPageName = async () => {
1111
const excludePattern = await Settings.get('random-page', 'random-page-exclude', DEFAULT_EXCLUDE_PATTERN)

0 commit comments

Comments
 (0)