Skip to content

Commit 37fc5db

Browse files
authored
Merge pull request #266 from Detegr/master
Remove re.LOCALE flag from str patterns
2 parents 67a693c + b467fde commit 37fc5db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ftplugin/orgmode/liborgmode/dom_obj.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
# heading regex
2626
REGEX_HEADING = re.compile(
2727
r'^(?P<level>\*+)(\s+(?P<title>.*?))?\s*(\s(?P<tags>:[\w_:@]+:))?$',
28-
flags=re.U | re.L)
28+
flags=re.U)
2929
REGEX_TAG = re.compile(
3030
r'^\s*((?P<title>[^\s]*?)\s+)?(?P<tags>:[\w_:@]+:)$',
31-
flags=re.U | re.L)
31+
flags=re.U)
3232
REGEX_TODO = re.compile(r'^[^\s]*$')
3333

3434
# checkbox regex:
@@ -40,7 +40,7 @@
4040
OrderListType = [u'.', u')']
4141
REGEX_CHECKBOX = re.compile(
4242
r'^(?P<level>\s*)(?P<type>[%s]|([a-zA-Z]|[\d]+)[%s])(\s+(?P<status>\[.\]))?\s*(?P<title>.*)$'
43-
% (''.join(UnOrderListType), ''.join(OrderListType)), flags=re.U | re.L)
43+
% (''.join(UnOrderListType), ''.join(OrderListType)), flags=re.U)
4444

4545

4646
class DomObj(object):

0 commit comments

Comments
 (0)