We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0728b2 commit 0f68596Copy full SHA for 0f68596
packages/remark-lsx/src/server/routes/list-pages/index.ts
@@ -95,7 +95,7 @@ export const listPages = ({ excludedPaths }: { excludedPaths: string[] }) => {
95
if (excludedPaths.length > 0) {
96
const escapedPaths = excludedPaths.map((p) => {
97
const cleanPath = p.startsWith('/') ? p.substring(1) : p;
98
- return cleanPath.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
+ return escapeStringRegexp(cleanPath);
99
});
100
101
const regex = new RegExp(`^\\/(${escapedPaths.join('|')})(\\/|$)`);
0 commit comments