Skip to content

Commit

Permalink
Waxed spicy, allowed dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
noahbroyles committed Jan 14, 2022
1 parent 5e7ddd6 commit 1b75f10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ These are the rules of the secsie config language:
```ini
key = value
```
7. Spaces are not allowed in key names or section tags. Only `a-z`, `A-Z`, `0-9` and `_` are allowed in section tag names, while special characters *are* allowed in key names.
7. Spaces are not allowed in key names or section tags. Only `a-z`(case insensitive), `0-9`, `_`, and `-` are allowed in section tag names, while other special characters *are* allowed in key names.
8. Values can consist of any character except `#`. Leading and trailing whitespace is removed.

## INI
Expand Down Expand Up @@ -437,4 +437,6 @@ Output (`examples/php_ini.secsie.conf`):


```
Blank values were commented out. If you disagree with that, *MAKE 'EM NULL*!
You should notice 2 things:
1. Keys and value assignments are separated by an equals sign with a space ON BOTH SIDES! `key = value`, **NOT** `key=value`. That is ugly and lazy. This ain't minified JS, son. [They make things for that...](https://www.amazon.com/dp/B089C3TZL9)
2. Blank values were commented out. If you disagree with that, *MAKE 'EM NULL*! `key = ` doesn't say anything.
2 changes: 1 addition & 1 deletion secsie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

MODES = {
"secsie": dict(
SECTION_EX = re.compile(r'\[([a-zA-Z0-9_]+)\]'),
SECTION_EX = re.compile(r'\[([a-zA-Z0-9_-]+)\]'),
FLOAT_EX = re.compile(r'^([-]?\d+[\.]\d*)$'),
FALSE_EX = re.compile(r'^(false|no)$', re.IGNORECASE),
NULL_EX = re.compile(r'^null$', re.IGNORECASE),
Expand Down

0 comments on commit 1b75f10

Please sign in to comment.