Skip to content

Infinite Loop #27

@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions