diasks2 / pragmatic_segmenter

Pragmatic Segmenter is a rule-based sentence boundary detection gem that works out-of-the-box across many languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

replace_parens_in_numbered_list() calls scan_lists() twice

simnalamburt opened this issue · comments

replace_parens_in_numbered_list() calls scan_lists() twice with same paramters. I checked the commit which introduced the duplication and it looks like a mistake.

def replace_parens_in_numbered_list
scan_lists(
NUMBERED_LIST_PARENS_REGEX, NUMBERED_LIST_PARENS_REGEX, '☝')
scan_lists(NUMBERED_LIST_PARENS_REGEX, NUMBERED_LIST_PARENS_REGEX, '☝')
end

Reference