mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-21 19:05:13 +00:00
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:
@@ -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, "'");
|
||||
|
||||
Reference in New Issue
Block a user