zoekt: 5 files / 101 matches / 0.26ms neogrok: 5 files / 101 matches
zoektsrc/routes/syntax/+page.svelte 23 matches | Svelte | №1
48
If your query contains no spaces, its behavior is pretty intuitive.49 <ExampleQuery query="foo" /> displays all matches for the regex50 <Expression>/foo/</Expression>. That query contains a single51 <em>expression</em>, namely a <em>regex</em> expression. (We'll introduce54
<p>55 But what about <ExampleQuery query="foo bar" />? This query has two56 expressions, which makes its behavior more complicated: it returns all57 matches for the regex <Expression>/foo/</Expression> <em>or</em> the regex <Expression58 >/bar/</Expression59 >, but only in files that have matches for both <Expression60 >/foo/</Expression61 > <em>and</em>zoektsrc/routes/(opengrok-compat)/search/opengrok-lucene.server.ts 3 matches | TypeScript | №2
zoektsrc/lib/server/content-parser.test.ts 38 matches | TypeScript | №3
5
it("parses file name matches", () => {6 expect(parseFileNameMatch(Buffer.from("foo"), [])).toEqual({7 text: "foo",8 matchRanges: [],10
expect(11 parseFileNameMatch(Buffer.from("foo"), [{ start: 0, end: 3 }]),12 ).toEqual({ text: "foo", matchRanges: [{ start: 0, end: 3 }] });13 expect(14 parseFileNameMatch(Buffer.from("foo"), [{ start: 0, end: 2 }]),15 ).toEqual({ text: "foo", matchRanges: [{ start: 0, end: 2 }] });16 expect(17 parseFileNameMatch(Buffer.from("foo"), [{ start: 1, end: 3 }]),18 ).toEqual({ text: "foo", matchRanges: [{ start: 1, end: 3 }] });19 expect(20 parseFileNameMatch(Buffer.from("foo"), [{ start: 1, end: 2 }]),21 ).toEqual({ text: "foo", matchRanges: [{ start: 1, end: 2 }] });