From b84779ad997a4e6065a967c474dcd1c90615b3b2 Mon Sep 17 00:00:00 2001 From: Alexei Date: Fri, 10 Nov 2023 10:58:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=D1=81?= =?UTF-8?q?=D1=8F=20www=20=D0=B8=D0=B7=20=D0=B8=D1=81=D1=82=D0=BE=D1=87?= =?UTF-8?q?=D0=BD=D0=B8=D0=BA=D0=B0=20#11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- news_parser.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/news_parser.js b/news_parser.js index eac69ae..dba9f25 100644 --- a/news_parser.js +++ b/news_parser.js @@ -77,6 +77,10 @@ return RemoveAfterSplitter(a_Url, separator, false); } + function ClearWWW(a_Url) { + return ( a_Url || '' ).replace( 'www.', '' ); + } + function ClearTextFuncTemplate(a_RemoveBeforeList, a_OnlyFirstIndex) { function ClearTextFunc(a_Content, a_ElementIndex) { if (a_OnlyFirstIndex && a_ElementIndex && a_ElementIndex != 1) { @@ -469,7 +473,7 @@ if (content.length > 0) { result = ''; }