Skip to content

Commit

Permalink
Append backtrack, ignore bench in coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Sep 12, 2024
1 parent d6c3658 commit df39d6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ function sequenceToRegExp(tokens: Flattened[], delimiter: string, keys: Keys) {

if (token.type === "text") {
result += escape(token.value);
backtrack = token.value;
backtrack += token.value;
isSafeSegmentParam ||= token.value.includes(delimiter);
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineConfig } from "vite";
export default defineConfig({
test: {
coverage: {
exclude: ["scripts/**"],
exclude: ["scripts/**", "**/*.bench.ts"],
},
},
});

0 comments on commit df39d6c

Please sign in to comment.