Add Microsoft/Azure Study Mode chat mode (#134)

* Add Microsoft Study and Learn chat mode

* Fix update-readme.js for windows env
This commit is contained in:
Tianqi Zhang
2025-07-31 13:32:05 +08:00
committed by GitHub
parent 89ee77e73c
commit 43579c939e
3 changed files with 35 additions and 2 deletions

View File

@@ -227,13 +227,13 @@ function extractDescription(filePath) {
} else {
// Look for single-line description field in frontmatter
const descriptionMatch = line.match(
/^description:\s*['"]?(.+?)['"]?$/
/^description:\s*['"]?(.+?)['"]?\s*$/
);
if (descriptionMatch) {
let description = descriptionMatch[1];
// Check if the description is wrapped in single quotes and handle escaped quotes
const singleQuoteMatch = line.match(/^description:\s*'(.+)'$/);
const singleQuoteMatch = line.match(/^description:\s*'(.+?)'\s*$/);
if (singleQuoteMatch) {
// Replace escaped single quotes ('') with single quotes (')
description = singleQuoteMatch[1].replace(/''/g, "'");