ff = '''
private String extractFileName(Header header) {
if (header != null) {
String value = header.getValue();
int start = value.indexOf(FILENAME_HEADER_PREFIX);
if (start != -1) {
value = value.substring(start + FILENAME_HEADER_PREFIX.length());
int end = value.indexOf('\"');
if (end != -1) {
return value.substring(0, end);
}
}
}
return null;
}'''
xx = comment_parser.extract_comments_from_str(ff,mime='text/x-java-source')
The script seems not able to preprocess this method. Specifically the problematic instruction is the bold one.
Do you have any workarounds?
ff = '''
private String extractFileName(Header header) {
if (header != null) {
String value = header.getValue();
int start = value.indexOf(FILENAME_HEADER_PREFIX);
if (start != -1) {
value = value.substring(start + FILENAME_HEADER_PREFIX.length());
int end = value.indexOf('\"');
if (end != -1) {
return value.substring(0, end);
}
}
}
return null;
}'''
xx = comment_parser.extract_comments_from_str(ff,mime='text/x-java-source')
The script seems not able to preprocess this method. Specifically the problematic instruction is the bold one.
Do you have any workarounds?