```diff
-  output += "\t#{card.text.replace(/[\n\r)/g, " ")}" if card.hasOwnProperty("text")
+  output += "\t#{card.text.replace(/[\n\r]/g, " ")}" if card.hasOwnProperty("text")
```