Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
d01e3da0
Commit
d01e3da0
authored
May 27, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(amos-boot-module-jg): 修正管道规格正则表达式
- 替换原有的正则表达式,以更准确地匹配管道规格 - 新正则表达式支持 0 或者以非零数字开头的数字,后跟可选的小数部分 -允许使用 - 或 / 连接多个数字,支持复杂的管道规格格式
parent
0ec71413
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
DataDockServiceImpl.java
.../boot/module/jg/biz/service/impl/DataDockServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/DataDockServiceImpl.java
View file @
d01e3da0
...
...
@@ -1540,7 +1540,7 @@ public class DataDockServiceImpl {
* @param rowError
*/
public
void
checkPipeSpecifications
(
String
item
,
String
errorMessage
,
StringBuffer
rowError
)
{
String
regex
=
"^
\\d(\\d*[.]?\\d*)([-/]\\d*[.]?\\d*)?
$"
;
String
regex
=
"^
(?:0|[1-9]\\d*(?:[.]\\d*)?)((?:[-/](?:0[.]\\d+|[1-9]\\d*(?:[.]\\d*)?))?)+
$"
;
if
(!
item
.
matches
(
regex
))
{
rowError
.
append
(
errorMessage
);
}
...
...
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