From 3aaf70659049ff45b61c9025fe081414802a654c Mon Sep 17 00:00:00 2001 From: xmcp Date: Thu, 14 Mar 2019 23:24:34 +0800 Subject: [PATCH] update --- package.json | 1 - src/Flows.js | 24 ------------------------ src/text_splitter.js | 2 +- 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/package.json b/package.json index 1123420..ecff20a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "react": "^16.4.2", "react-dom": "^16.4.2", "react-lazyload": "latest", - "react-linkify": "^0.2.2", "react-scripts": "1.1.4", "react-timeago": "^4.1.9" }, diff --git a/src/Flows.js b/src/Flows.js index a082e2e..ce3deae 100644 --- a/src/Flows.js +++ b/src/Flows.js @@ -237,22 +237,6 @@ class FlowSidebar extends PureComponent { } } - star_brush() { - let count=prompt('Count:'); - if(count) { - let reqs=[]; - for(let i=parseInt(count);i;i--) - reqs.push(API.set_attention(this.state.info.pid,false,this.props.token)); - Promise.all(reqs) - .then(()=>{ - alert('Completed!') - }) - .catch((e)=>{ - alert('Failed!\n\n'+e); - }) - } - } - show_reply_bar(name,event) { if(this.reply_ref.current && event.target.tagName.toLowerCase()!=='a') { let text=this.reply_ref.current.get(); @@ -262,19 +246,11 @@ class FlowSidebar extends PureComponent { } render() { - const star_brush=localStorage['STAR_BRUSH']==='on'; - if(this.state.loading_status==='loading') return (

加载中……

); return (
- {(star_brush && !!this.props.token) && - - - -  /  - - } {!!this.props.token && 举报 diff --git a/src/text_splitter.js b/src/text_splitter.js index b11e12a..4eb694d 100644 --- a/src/text_splitter.js +++ b/src/text_splitter.js @@ -1,4 +1,4 @@ -export const PID_RE=/(^|[^\d])([1-9]\d{4,5})(?!\d)/g; +export const PID_RE=/(^|[^\d])([1-9]\d{4,5})(?!\d|\u20e3)/g; export const NICKNAME_RE=/(^|[^A-Za-z])((?:(?:Angry|Baby|Crazy|Diligent|Excited|Fat|Greedy|Hungry|Interesting|Japanese|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=/(?:^|\b)((?:https?:\/\/)?(?:[\w-]+\.)+[a-zA-Z]{2,3}(?::\d{1,5})?(?:\/[\w~!@#$%^&*()-_=+[\];,./?]*)?)(?:$|\b)/gi;