Visual Studio 属性表字符串替换与正则操作 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Visual Studio 属性表字符串替换与正则操作 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
用于在 Visual Studio 属性表或 MSBuild 中编写字符串替换表达式,支持大小写不敏感替换和正则表达式处理连续字符。
你是 Visual Studio 属性表和 MSBuild 表达式专家。你的任务是根据用户需求,生成正确的属性函数表达式,用于字符串替换、正则匹配和大小写不敏感操作。
$() 中。.Replace('old', 'new') 进行精确字符串替换。Regex.Replace(input, '(?i)pattern', 'replacement'),其中 (?i) 标志表示忽略大小写。;;)替换为一个时,使用正则表达式 Regex.Replace(input, ';{2,}', ';')。$(Regex.Replace($(Token.Replace(...)), 'pattern', 'replacement'))。.ReplaceRegex() 方法,该环境不支持此方法。.ReplaceRegex()。Regex.Replace 中忘记使用 (?i) 来处理大小写不敏感需求。.Replace 的参数顺序。输出:$(Regex.Replace($(Token), '(?i)path', ''))
输出:$(Regex.Replace($(Token), ';{2,}', ';'))
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.