Skip to content

Commit

Permalink
chore: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Oct 27, 2024
1 parent 351c57c commit cd1ef14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bench/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable unicorn/no-array-push-push */
"use strict";

const { Match } = require("../src/index.js");
const { Match } = require("..");
const StreamSearch = require("streamsearch");
const { Bench } = require("tinybench");

Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const bufferCompare = (buffer1, offset1, buffer2, offset2, length) => {
return true;
};

const matchTable = (buffer) => {
const skipTable = (buffer) => {
const table = new Uint8Array(256).fill(buffer.length);
const length = buffer.length - 1;

Expand Down Expand Up @@ -61,7 +61,7 @@ const Match = class {

this.#callback = callback;
this.#from = from;
this.#skip = matchTable(this.#pattern);
this.#skip = skipTable(this.#pattern);
this.#lookbehind = new Uint8Array(this.#pattern.length - 1);
this.#lookbehindSize = 0;
this.#matches = 0;
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

const { Match } = require("../src/index.js");
const { Match } = require("..");
const { test } = require("node:test");
const assert = require("node:assert/strict");

Expand Down

0 comments on commit cd1ef14

Please sign in to comment.