fix ValidUser (#2381)
This commit is contained in:
parent
d5f70070ef
commit
6a69701b54
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ export default definePlugin({
|
|||
find: 'className:"mention"',
|
||||
replacement: {
|
||||
// mention = { react: function (data, parse, props) { if (data.userId == null) return RoleMention() else return UserMention()
|
||||
match: /react(?=\(\i,\i,\i\).{0,50}return null==.{0,70}\?\(0,\i\.jsx\)\((\i\.\i),.+?jsx\)\((\i\.\i),\{className:"mention")/,
|
||||
match: /react(?=\(\i,\i,\i\).{0,100}return null==.{0,70}\?\(0,\i\.jsx\)\((\i\.\i),.+?jsx\)\((\i\.\i),\{className:"mention")/,
|
||||
// react: (...args) => OurWrapper(RoleMention, UserMention, ...args), originalReact: theirFunc
|
||||
replace: "react:(...args)=>$self.renderMention($1,$2,...args),originalReact"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue