Commit 718727a
Multi-target net9/net10, serialization fixes, and unit tests (#18)
* Add net9/net10 targets, fix serialization bugs, and add unit tests
- Multi-target library: netstandard2.0/2.1 + net9.0 + net10.0
- Upgrade demo and new xUnit project to net10.0; CI uses .NET 10
- Preserve token order on write; default Save to UTF-8 without BOM
- Fix GetTokensFromPath NRE, Remove index handling, parser errors
Co-authored-by: Passingwind <jxnkwlp@users.noreply.github.com>
* Expand unit tests with common nginx.conf directives
Add coverage for SSL, proxy, upstream, map, gzip, limit_req,
fastcgi, rewrite/try_files, types, and deeper test.conf assertions.
Co-authored-by: Passingwind <jxnkwlp@users.noreply.github.com>
* Fix #15: ignore semicolons inside quoted nginx values
ParseLine now scans with quote awareness so ; # { inside
single/double quotes do not terminate statements. Adds
regression tests for add_header and related cases.
Co-authored-by: Passingwind <jxnkwlp@users.noreply.github.com>
* Document NginxConfig public API with brief English XML comments
Co-authored-by: Passingwind <jxnkwlp@users.noreply.github.com>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent 1861805 commit 718727a
19 files changed
Lines changed: 1801 additions & 138 deletions
File tree
- .github/workflows
- NginxConfigParserTests
- NginxConfigParserUnitTests
- NginxConfigParser
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
24 | 34 | | |
25 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
26 | 40 | | |
27 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
28 | 46 | | |
29 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
30 | 64 | | |
31 | 65 | | |
32 | 66 | | |
| |||
0 commit comments