Commit ca7ce96
Extract duplicated regex pattern as class constant
- Add _JSON_NATIVE_PATTERN class constant to TemplateEngine
- Replace inline pattern strings with self._JSON_NATIVE_PATTERN
- Eliminates duplication between is_json_native_placeholder and resolve_json_native methods
- All 648 tests passing, linting clean
Co-authored-by: MaestroError <46760939+MaestroError@users.noreply.github.com>1 parent e8916f9 commit ca7ce96
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | | - | |
51 | | - | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | | - | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments