From 20b09e97a282a4396685bbdcf2635688bc87d45e Mon Sep 17 00:00:00 2001 From: thuhole Date: Fri, 19 Jun 2020 22:22:08 +0800 Subject: [PATCH] add stats --- README.md | 2 +- public/CNAME | 2 +- public/stats.js | 4 ++-- src/text_splitter.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 431c8a2..61a7df0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -网页版 T大树洞:[https://thuhole.tech/](https://thuhole.tech/) +网页版 T大树洞:[https://thuhole.com/](https://thuhole.com/) ![https://api.travis-ci.org/thuhole/webhole.svg?branch=master](https://api.travis-ci.org/thuhole/webhole.svg?branch=master) diff --git a/public/CNAME b/public/CNAME index a7ea9dc..d8132a1 100644 --- a/public/CNAME +++ b/public/CNAME @@ -1 +1 @@ -tst.thuhole.tech \ No newline at end of file +tst.thuhole.com \ No newline at end of file diff --git a/public/stats.js b/public/stats.js index f1a95c9..a0a4777 100644 --- a/public/stats.js +++ b/public/stats.js @@ -1,5 +1,5 @@ var _czc = _czc || []; -_czc.push(["_setAccount", "1279007303"]); +_czc.push(["_setAccount", "1279007496"]); _czc.push(["_setCustomVar", "has_token", localStorage['TOKEN'] ? 'yes' : 'no', 1]); _czc.push(["_setCustomVar", "standalone", ((window.matchMedia('(display-mode: standalone)').matches) || (window.navigator.standalone)) ? 'yes' : 'no', 1]); _czc.push(["_setCustomVar", "build_info", "%REACT_APP_BUILD_INFO%" || '---']); @@ -21,5 +21,5 @@ var cnzz_s_tag = document.createElement('script'); cnzz_s_tag.type = 'text/javascript'; cnzz_s_tag.async = true; cnzz_s_tag.charset = "utf-8"; -cnzz_s_tag.src = "https://w.cnzz.com/c.php?id=1279007303&async=1"; +cnzz_s_tag.src = "https://w.cnzz.com/c.php?id=1279007496&async=1"; document.head.appendChild(cnzz_s_tag); \ No newline at end of file diff --git a/src/text_splitter.js b/src/text_splitter.js index 713bdb2..71d7544 100644 --- a/src/text_splitter.js +++ b/src/text_splitter.js @@ -2,8 +2,8 @@ // export const PID_RE=/(^|[^\d\u20e3\ufe0e\ufe0f])([2-9]\d{4,5}|1\d{4,6})(?![\d\u20e3\ufe0e\ufe0f])/g; export const PID_RE=/(^|[^\d\u20e3\ufe0e\ufe0f])(#\d{1,7})(?![\d\u20e3\ufe0e\ufe0f])/g; // TODO: fix this re -// export const URL_PID_RE=/((?:https?:\/\/)?thuhole\.tech\/?#(?:#|%23)([2-9]\d{4,5}|1\d{4,6}))(?!\d|\u20e3|\ufe0e|\ufe0f)/g; -export const URL_PID_RE=/((?:https?:\/\/)?thuhole\.tech\/?#(?:#|%23)(\d{1,7}))(?!\d|\u20e3|\ufe0e|\ufe0f)/g; +// export const URL_PID_RE=/((?:https?:\/\/)?thuhole\.com\/?#(?:#|%23)([2-9]\d{4,5}|1\d{4,6}))(?!\d|\u20e3|\ufe0e|\ufe0f)/g; +export const URL_PID_RE=/((?:https?:\/\/)?thuhole\.com\/?#(?:#|%23)(\d{1,7}))(?!\d|\u20e3|\ufe0e|\ufe0f)/g; export const NICKNAME_RE=/(^|[^A-Za-z])((?:(?:Angry|Baby|Crazy|Diligent|Excited|Fat|Greedy|Hungry|Interesting|Jolly|Kind|Little|Magic|Naïve|Old|Powerful|Quiet|Rich|Superman|THU|Undefined|Valuable|Wifeless|Xiangbuchulai|Young|Zombie)\s)?(?:Alice|Bob|Carol|Dave|Eve|Francis|Grace|Hans|Isabella|Jason|Kate|Louis|Margaret|Nathan|Olivia|Paul|Queen|Richard|Susan|Thomas|Uma|Vivian|Winnie|Xander|Yasmine|Zach)|You Win(?: \d+)?|洞主)(?![A-Za-z])/gi; export const URL_RE=/(^|[^.@a-zA-Z0-9_])((?:https?:\/\/)?(?:(?:[\w-]+\.)+[a-zA-Z]{2,3}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?::\d{1,5})?(?:\/[\w~!@#$%^&*()\-_=+[\]{};:,./?|]*)?)(?![a-zA-Z0-9])/gi;