Skip to content

Commit

Permalink
permitted space in section headers to allow for AWS [profile blah] se…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
HariSekhon committed Nov 22, 2024
1 parent 5206c0f commit ea2ed7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validate_ini.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
sys.exit(4)

__author__ = 'Hari Sekhon'
__version__ = '0.12.2'
__version__ = '0.12.3'


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

0 comments on commit ea2ed7d

Please sign in to comment.