mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-09 14:28:01 -05:00
- Extract InputSentinel constant to shared constants.go file - Remove duplicate inputSentinel definitions from template.go and patterns.go - Create withTestExtension helper function to reduce test code duplication - Refactor 3 test functions to use the helper (reduces ~40 lines per test) - Fix shell script to use $@ instead of $* for proper argument quoting Addresses review comments from @ksylvan and @Copilot AI
6 lines
203 B
Go
6 lines
203 B
Go
package template
|
|
|
|
// InputSentinel is used to temporarily replace {{input}} during template processing
|
|
// to prevent recursive variable resolution
|
|
const InputSentinel = "__FABRIC_INPUT_SENTINEL_TOKEN__"
|