diff --git a/ftplugin/orgmode/liborgmode/dom_obj.py b/ftplugin/orgmode/liborgmode/dom_obj.py index 8a3beade..5270d190 100644 --- a/ftplugin/orgmode/liborgmode/dom_obj.py +++ b/ftplugin/orgmode/liborgmode/dom_obj.py @@ -25,10 +25,10 @@ # heading regex REGEX_HEADING = re.compile( r'^(?P\*+)(\s+(?P.*?))?\s*(\s(?P<tags>:[\w_:@]+:))?$', - flags=re.U | re.L) + flags=re.U) REGEX_TAG = re.compile( r'^\s*((?P<title>[^\s]*?)\s+)?(?P<tags>:[\w_:@]+:)$', - flags=re.U | re.L) + flags=re.U) REGEX_TODO = re.compile(r'^[^\s]*$') # checkbox regex: @@ -40,7 +40,7 @@ OrderListType = [u'.', u')'] REGEX_CHECKBOX = re.compile( r'^(?P<level>\s*)(?P<type>[%s]|([a-zA-Z]|[\d]+)[%s])(\s+(?P<status>\[.\]))?\s*(?P<title>.*)$' - % (''.join(UnOrderListType), ''.join(OrderListType)), flags=re.U | re.L) + % (''.join(UnOrderListType), ''.join(OrderListType)), flags=re.U) class DomObj(object):