The fix consists in adding #? in the negative look-ahead expected to reject
entity references:
& // character '&'
(?! // not followed by
#? // an optional # (numerical entity), followed by
\w+ // a word, followed by
; // character ';'
)
instead of
& // character '&'
(?! // not followed by
\w+ // a word, followed by
; // character ';'
)
tags/0.4.1