import re


def verify_kr_inner(peptide_seq):
    """ verify if K or R feature within the peptide sequence 
    (an indicator of missed cleaveges)
    """
    kr_inner = bool(re.search('K', peptide_seq[:-1])) or bool(
        re.search('R', peptide_seq[:-1]))
    return kr_inner