mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-07-01 21:01:20 +08:00
6 lines
170 B
TypeScript
6 lines
170 B
TypeScript
export function replaceAppleQuotes(text: string): string {
|
||
return typeof text !== 'string'
|
||
? text
|
||
: text.replace(/[“”]/g, '"').replace(/[‘’]/g, "'");
|
||
}
|