s/LINK_PATTERN/self.LINK_PATTERN