def wcag_refs(code):
bits = code.split("<STR_LIT:.>")<EOL>for bit in reversed(bits):<EOL><INDENT>if WCAG_REFS_RE.match(bit):<EOL><INDENT>return bit.split("<STR_LIT:U+002C>")<EOL><DEDENT><DEDENT>return []<EOL>
Given a `code` from pa11y, return a list of the WCAG references.
These references are always of the form: one or more capital letters,
followed by one or more digits. One `code` may contain multiple
references, separated by commas.