diff --git a/GSGreenTextPlugin.php b/GSGreenTextPlugin.php
index 6ebd8eb..5ac2745 100644
--- a/GSGreenTextPlugin.php
+++ b/GSGreenTextPlugin.php
@@ -8,6 +8,8 @@ class GSGreenTextPlugin extends Plugin
{
const VERSION = '0.0.1';
+ const LINE_SEP = "/\s*
\s*/";
+
public function onEndShowStyles(Action $action)
{
$action->style(".greentext { color: green; }");
@@ -20,7 +22,7 @@ class GSGreenTextPlugin extends Plugin
function onStartNoticeSave(&$notice)
{
- $sepnotice = preg_split("/
\r?\n*/", $notice->rendered, -1);
+ $sepnotice = preg_split(self::LINE_SEP, $notice->rendered, -1);
foreach($sepnotice as &$sep)
{