23 Commits
Author SHA1 Message Date
Lex Darlog (DRL) 6af46cfea9 Fully reimplement format-dict validation:
- better readability
- better error messages (wrong keys grouped by error type)
- added `_cleanup_format_dict()`
2026-04-22 04:24:53 -03:00
Lex Darlog (DRL) c71f426c75 StringFormatter 2026-04-20 23:42:02 -03:00
Lex Darlog (DRL) 1c0e1f7455 ren: old_* node modules 2026-04-20 23:42:02 -03:00
Lex Darlog (DRL) f908500d8c funcs_common -> _dict 2026-04-20 23:42:01 -03:00
Lex Darlog (DRL) e13024cd2c _meta -> __meta 2026-04-20 23:42:01 -03:00
Lex Darlog (DRL) 3cc6c963e0 shorten safe_format tooltip 2025-08-31 06:32:20 +05:00
Lex Darlog (DRL) 1289961c08 + bugfix: properly handle multiline templates in safe-mode regex 2025-08-31 05:20:34 +05:00
Lex Darlog (DRL) e15988a53c Again, fully reworked the logic:
instead of parsing and escaping the entire template ourself, let's rely on the built-in formatting and fallback on errors instead
2025-08-30 06:12:22 +05:00
MaraScott f764fefe76 fix(string-constructor): resolve Optional typing crash and regex warnings
- Fixed TypeError caused by invalid use of typing.Optional with two arguments.
  Replaced Optional[Dict[str, Any], None] with correct Optional[Dict[str, Any]] = None.
- Updated __escape_match() to pass integer brace counts instead of raw strings
  to _n_brackets_after_escape_for_existing_key, preventing runtime errors.
- Converted regex patterns to raw strings (r\'...\') to eliminate SyntaxWarning
  about invalid escape sequences (\\s, \\{).
2025-08-29 14:09:52 +02:00
Lex Darlog (DRL) 200dff7c81 + account for leading/trailing brackets 2025-08-29 13:31:53 +05:00
Lex Darlog (DRL) a08e42f394 node_formatter: **COMPLETE REFACTOR** - _Formatter class introduced instead of a bunch of functions for all the cases. 2025-08-29 12:07:07 +05:00
Lex Darlog (DRL) d286e07f70 match_escaping_func as an argument 2025-08-29 10:21:09 +05:00
Lex Darlog (DRL) 142705a3cb reorder funcs 2025-08-29 09:51:53 +05:00
Lex Darlog (DRL) 072e098837 pre-cache regex 2025-08-29 09:46:10 +05:00
Lex Darlog (DRL) ebb03f393d Change args order 2025-08-29 09:24:18 +05:00
Lex Darlog (DRL) 7158842e3c Restore comments and changes about code style 2025-08-29 09:11:04 +05:00
Lex Darlog (DRL) 8893bf3e7b + remove trailing spaces 2025-08-28 16:27:28 +05:00
Lex Darlog (DRL) c2524445e8 restore: spaces -> tabs 2025-08-28 16:17:08 +05:00
MaraScott 0d9dfd2e05 Update node_formatter.py to accept curly bracket in template for non variables in dict 2025-08-28 12:35:38 +02:00
Lex Darlog (DRL) e4e6fb918b refactor: func modules -> static methods right within nodes 2025-07-27 05:18:07 +05:00
Lex Darlog (DRL) f635f54f76 recursive_format feature 2025-07-22 03:16:21 +05:00
Lex Darlog (DRL) 3683a610e2 rename data type to just DICT - for compatibility with other nodes 2025-07-21 20:12:46 +05:00
Lex Darlog (DRL) 3759ab7c74 StringConstructorFormatter 2025-07-21 07:55:15 +05:00