Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aferditamuriqi committed Sep 11, 2022
1 parent a5fb253 commit 69045ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/modules/AnnotationModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { Publication } from "../model/Publication";
import {
TextHighlighter,
_highlights,
CLASS_HIGHLIGHT_ICON,
CLASS_HIGHLIGHT_AREA,
HighlightContainer,
} from "./highlight/TextHighlighter";
Expand Down Expand Up @@ -1023,11 +1022,7 @@ export class AnnotationModule implements ReaderModule {
syncPosition(highlights: Array<any>) {
let doc = this.delegate.iframes[0].contentDocument;

const positionAnnotations = (
newArray: Array<any>,
currentElement: any,
currentIndex: number
) => {
const positionAnnotations = (newArray: Array<any>, currentElement: any) => {
let container = doc!.getElementById("R2_ID_HIGHLIGHTS_CONTAINER");
let highlightArea;
let highlightIcon;
Expand Down
1 change: 0 additions & 1 deletion src/modules/TTS/TTSModule2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,6 @@ export class TTSModule2 implements ReaderModule {
const ttsQueueItem = ttsQueueItemRef.item;
let charIndexAdjusted = charIndex;


let acc = 0;
let rangeStartNode: Node | undefined;
let rangeStartOffset = -1;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/highlight/TextHighlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ export class TextHighlighter {
}

let length = text.length;
var regex_symbols = /[-!$%^&*()_+|~=`{}\[\]:\/;<>?,.@#]/;
var regex_symbols = /[-!$%^&*()_+|~=`{}[\]:/;<>?,.@#]/;
text = text.replace(regex_symbols, "");
startOffsetTemp = length - text.trimStart().length;
text = removeTrailingPunctuation(text);
Expand Down

0 comments on commit 69045ff

Please sign in to comment.