Filter for whole word when replacing text in a template.json
In my template.json file I want to replace the word "Stat" with whatever the user puts in. { "$schema": "http://json.schemastore.org/template", // ..., "symbols": { "Conformance":{ "type": "parameter", "description": "The conformance of the stat building block.", "datatype": "text", "replaces": "Stat", "defaultValue": "Stat" }, "conformance":{ "type": "generated", "generator": "casing", "parameters": { "source": "Conformance", "toLower": true }, "replaces": "stat" } } } However, this also replaces words like "static". If "stat" is replaced with "picn" then "static" gets changed to "picnic". Ho
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.