You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ge...@apache.org on 2021/06/25 16:09:30 UTC
[incubator-annotator] 05/05: Tiny fixes
This is an automated email from the ASF dual-hosted git repository.
gerben pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit bdc0b32e684ebd67ff94b49456c59d97abb9cafd
Author: Gerben <ge...@treora.com>
AuthorDate: Fri Jun 25 18:07:57 2021 +0200
Tiny fixes
---
packages/selector/src/index.ts | 2 +-
packages/selector/src/text/seeker.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/selector/src/index.ts b/packages/selector/src/index.ts
index e0a5e48..c028836 100644
--- a/packages/selector/src/index.ts
+++ b/packages/selector/src/index.ts
@@ -44,7 +44,7 @@ export * from './text';
export function makeRefinable<
// Any subtype of Selector can be made refinable; but note we limit the value
// of refinedBy because it must also be accepted by matcherCreator.
- TSelector extends Selector & { refinedBy: TSelector },
+ TSelector extends Selector & { refinedBy?: TSelector },
TScope,
// To enable refinement, the implementation’s Match object must be usable as a
// Scope object itself.
diff --git a/packages/selector/src/text/seeker.ts b/packages/selector/src/text/seeker.ts
index b8246c6..b83de4c 100644
--- a/packages/selector/src/text/seeker.ts
+++ b/packages/selector/src/text/seeker.ts
@@ -332,7 +332,7 @@ export class TextSeeker<TChunk extends Chunk<string>>
this.currentChunkPosition + this.currentChunk.data.length;
if (endOfChunk <= target) {
// The target is beyond the current chunk.
- // (we use < not ≤: if the target is *at* the end of the chunk, possibly
+ // (we use ≤ not <: if the target is *at* the end of the chunk, possibly
// because the current chunk is empty, we prefer to take the next chunk)
const [data, nextChunk] = this._readToNextChunk();