From 0810cd4ae07c52d99d75197c49307cab980592aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Tue, 7 Nov 2023 13:48:32 +0200 Subject: [PATCH] RED-6435: Removed add to dict character limit --- .../modules/file-preview/file-preview-screen.component.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts index e7cc5bbd3..66c13f13d 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts @@ -760,11 +760,11 @@ export class FilePreviewScreenComponent .subscribe(); const selectedTextEffect = this._documentViewer.selectedText$.pipe( - tap(selectedText => { + tap(() => { const canPerformActions = this.pdfProxyService.canPerformActions(); const isCurrentPageExcluded = this.state.file().isPageExcluded(this.pdf.currentPage()); - if ((selectedText.length > 2 || this._isJapaneseString(selectedText)) && canPerformActions && !isCurrentPageExcluded) { + if (canPerformActions && !isCurrentPageExcluded) { this.pdf.enable(textActions); } else { this.pdf.disable(textActions); @@ -852,10 +852,6 @@ export class FilePreviewScreenComponent this._annotationManager.select(annotations); } - private _isJapaneseString(text: string) { - return text.match(/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/); - } - #restoreOldFilters() { combineLatest([ this._filterService.getGroup$('primaryFilters').pipe(first(filterGroup => !!filterGroup?.filters.length)),