mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-15 19:00:21 -04: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, "'");
|
||
}
|