|
@@ -201,7 +201,9 @@
|
|
|
$shortcuts = $pro->shortcuts;
|
|
|
$packed = [];
|
|
|
foreach ($shortcuts as $shortcut) {
|
|
|
- $packed[] = $shortcut->shortcut . '|||' . $shortcut->text;
|
|
|
+ // TEMP Solution - disallow newlines in shortcut expansions
|
|
|
+ // $packed[] = $shortcut->shortcut . '|||' . $shortcut->text;
|
|
|
+ $packed[] = $shortcut->shortcut . '|||' . preg_replace("/[\\r\\n]+/i", " ", $shortcut->text);
|
|
|
}
|
|
|
$packed = implode("^^^", $packed);
|
|
|
$shortcuts = $packed;
|