Skip to content

Commit ea2ed7d

Browse files
committed
permitted space in section headers to allow for AWS [profile blah] sections
1 parent 5206c0f commit ea2ed7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validate_ini.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
sys.exit(4)
5959

6060
__author__ = 'Hari Sekhon'
61-
__version__ = '0.12.2'
61+
__version__ = '0.12.3'
6262

6363

6464
class IniValidatorTool(CLI):
@@ -72,7 +72,7 @@ def __init__(self):
7272
self.re_suffix = re.compile(r'.*\.(?:ini|properties)$', re.I)
7373
# In Windows ini key cannot contain equals sign = or semicolon ;
7474
# key=val or [section]
75-
self.re_ini_section = re.compile(r'^\s*\[([\w=\:\.-]+)\]\s*$')
75+
self.re_ini_section = re.compile(r'^\s*\[([\w\s=\:\.-]+)\]\s*$')
7676
self.re_ini_key = re.compile(r'^\s*(?:[^\[;=]+)s*$')
7777
# INI value can be anything .* so not regex'ing it
7878
self.valid_ini_msg = '<unknown> => INI OK'

0 commit comments

Comments
 (0)