Project

General

Profile

« Previous | Next » 

Revision 12750

bugfix: bin/repl: text mode: also don't match if it's part of a '-'-separated identifier

View differences:

repl
17 17
quote_re = '[\'"`]'
18 18
excluded_prefix_re = (
19 19
     '(?<! )' # not if it's a word in a sentence
20
    +'(?<!-)' # not if it's part of a '-'-separated identifier
20 21
    +'(?<!\*)' # don't double leading *
21 22
    )
22 23
excluded_suffix_re = (
23 24
     '(?! )' # not if it's a word in a sentence
25
    +'(?!-)' # not if it's part of a '-'-separated identifier
24 26
    )
25 27

  
26 28
def unescape_html(str_): return HTMLParser.HTMLParser().unescape(str_)

Also available in: Unified diff