-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for Base64.getDecoder().decode(String) #826
Conversation
return Base64.Decoder.class; | ||
} | ||
|
||
private final static String BASE64_REGEX = "^[A-Za-z0-9+/]+={0,2}$"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is coming from somewhere, best to put a link here as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a better regex for this. I am also adding the link to the source.
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
public class Base64DecoderClassReplacementTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to have a simple E2E as well.
for example, i think this will not work right now, as it is not registered on ReplacementList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I was just checking with EMB why the error message kept happening.
I will add the e2e test too.
Thxs!
@@ -68,7 +68,8 @@ public static List<MethodReplacementClass> getList() { | |||
new URLClassReplacement(), | |||
new UUIDClassReplacement(), | |||
new ValidatorClassReplacement(), | |||
new WebRequestClassReplacement() | |||
new WebRequestClassReplacement(), | |||
new Base64DecoderClassReplacement() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list should be kept in alphabetic order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
No description provided.