Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
80b59bb5
Commit
80b59bb5
authored
Aug 15, 2022
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: rich
parent
8362954b
Pipeline
#57701
failed with stages
in 4 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
package.json
package.json
+6
-0
package.json
packages/base-components/RichText/package.json
+3
-1
index.js
packages/base-components/RichText/src/index.js
+0
-2
No files found.
package.json
View file @
80b59bb5
...
@@ -306,6 +306,12 @@
...
@@ -306,6 +306,12 @@
"webpack"
:
false
,
"webpack"
:
false
,
"running"
:
false
"running"
:
false
},
},
{
"path"
:
"packages/base-components/RichText/lib/**/*.js"
,
"limit"
:
"2 s"
,
"webpack"
:
false
,
"running"
:
false
},
{
{
"path"
:
"packages/base-components/RichText/es/**/*.js"
,
"path"
:
"packages/base-components/RichText/es/**/*.js"
,
"limit"
:
"2 s"
,
"limit"
:
"2 s"
,
...
...
packages/base-components/RichText/package.json
View file @
80b59bb5
...
@@ -9,12 +9,14 @@
...
@@ -9,12 +9,14 @@
"*.less"
"*.less"
],
],
"module"
:
"es/index.js"
,
"module"
:
"es/index.js"
,
"main"
:
"
es
/index.js"
,
"main"
:
"
lib
/index.js"
,
"files"
:
[
"files"
:
[
"lib"
,
"es"
,
"es"
,
"dist"
"dist"
],
],
"directories"
:
{
"directories"
:
{
"lib"
:
"lib"
,
"es"
:
"es"
,
"es"
:
"es"
,
"dist"
:
"dist"
,
"dist"
:
"dist"
,
"test"
:
"__tests__"
"test"
:
"__tests__"
...
...
packages/base-components/RichText/src/index.js
View file @
80b59bb5
...
@@ -374,8 +374,6 @@ const RichText = forwardRef((props, ref) => {
...
@@ -374,8 +374,6 @@ const RichText = forwardRef((props, ref) => {
const
pattern
=
const
pattern
=
/
[
`~!@#$^
\-
&*()+=|{}':;',
\\\[\]\<
>
\/
?~!@#¥……&*()——|{}【】';:""'。,、?
\s]
/g
;
/
[
`~!@#$^
\-
&*()+=|{}':;',
\\\[\]\<
>
\/
?~!@#¥……&*()——|{}【】';:""'。,、?
\s]
/g
;
let
name
=
file
.
name
.
replace
(
pattern
,
''
);
let
name
=
file
.
name
.
replace
(
pattern
,
''
);
console
.
log
(
'name'
,
name
);
const
renameFile
=
new
File
([
file
],
name
);
const
renameFile
=
new
File
([
file
],
name
);
const
formData
=
new
FormData
();
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
renameFile
);
formData
.
append
(
'file'
,
renameFile
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment