Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftMtMx
Overview
Overview
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
isc-v3.1-tmp
swiftMtMx
Commits
2ebeefb6
Commit
2ebeefb6
authored
Sep 23, 2022
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复mx_to_mt53A函数
parent
98e670b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
AbstractMx2MtTagsGenerate.java
...com/brilliance/swift/mx2mt/AbstractMx2MtTagsGenerate.java
+5
-3
No files found.
swiftCore/src/main/java/com/brilliance/swift/mx2mt/AbstractMx2MtTagsGenerate.java
View file @
2ebeefb6
...
@@ -985,14 +985,16 @@ public abstract class AbstractMx2MtTagsGenerate implements Mx2MtTagsGenerate {
...
@@ -985,14 +985,16 @@ public abstract class AbstractMx2MtTagsGenerate implements Mx2MtTagsGenerate {
}
}
}
}
}
}
String
regex
=
"
.*/FIN53/(.*)/[A-Z0-9]{1,8}/.*
"
;
String
regex
=
"
(/[A-Z0-9]{0,8}/[0-9a-zA-Z\\-\\?:\\(\\)\\.,'\\+]*)
"
;
Pattern
p
=
Pattern
.
compile
(
regex
);
Pattern
p
=
Pattern
.
compile
(
regex
);
Matcher
m
=
p
.
matcher
(
mtInstruction
);
Matcher
m
=
p
.
matcher
(
mtInstruction
);
if
(
m
.
find
())
{
while
(
m
.
find
())
{
/**
/**
* group(0)就是指的整个串,group(1)指的是第一个括号里的东西,group(2)指的第二个括号里的东西
* group(0)就是指的整个串,group(1)指的是第一个括号里的东西,group(2)指的第二个括号里的东西
*/
*/
bicCode
=
m
.
group
(
1
);
if
(
m
.
group
(
1
).
startsWith
(
"/FIN53/"
))
{
bicCode
=
m
.
group
(
1
).
substring
(
7
);
}
}
}
}
}
if
(
StringUtil
.
isNotEmpty
(
bicCode
)
&&
SwiftTransferUtil
.
isBIC
(
bicCode
))
{
if
(
StringUtil
.
isNotEmpty
(
bicCode
)
&&
SwiftTransferUtil
.
isBIC
(
bicCode
))
{
...
...
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