private String parseComment()

in core/src/main/java/org/apache/jsieve/parser/SieveNode.java [165:180]


    private String parseComment(Token special) {
        final String image = special.image;
        final String comment;
        if ('#' == image.charAt(0)) {
            final int leftHandCharactersToIgnore;
            if ('\r' == image.charAt(image.length()-2)) {
                leftHandCharactersToIgnore = 2;
            } else {
                leftHandCharactersToIgnore = 1;
            }
            comment = image.substring(1, image.length()-leftHandCharactersToIgnore);
        } else {
            comment = image.substring(2, image.length()-2);
        }
        return comment;
    }