diff --git a/EMT.forpy.php b/EMT.forpy.php index 317102f..55438fc 100644 --- a/EMT.forpy.php +++ b/EMT.forpy.php @@ -1,5 +1,5 @@ - array( 'description' => 'Замена символа тире на html конструкцию', - 'pattern' => '/—/iu', + 'pattern' => '/—|--/iu', 'replacement' => '—' ), 'mdash' => array( @@ -3479,4 +3479,4 @@ public static function fast_apply($text, $options = null) } -?> \ No newline at end of file +?> diff --git a/EMT.php b/EMT.php index 2a69495..dd398a1 100644 --- a/EMT.php +++ b/EMT.php @@ -1,11 +1,11 @@ - array( 'description' => 'Замена символа тире на html конструкцию', - 'pattern' => '/—/iu', + 'pattern' => '/—|--/iu', 'replacement' => '—' ), 'mdash' => array( @@ -3310,4 +3310,4 @@ public static function fast_apply($text, $options = null) } -?> \ No newline at end of file +?> diff --git a/EMT.py b/EMT.py index e71ddb2..a3b7141 100644 --- a/EMT.py +++ b/EMT.py @@ -1310,7 +1310,7 @@ def __init__(self): self.rules = { u"mdash_symbol_to_html_mdash": { u"description": u"Замена символа тире на html конструкцию", - u"pattern": u"/—/iu", + u"pattern": u"/—|--/iu", u"replacement": u"—" }, u"mdash": { diff --git a/src/EMT.Tret.Dash.php b/src/EMT.Tret.Dash.php index c4a36d3..8f6beea 100644 --- a/src/EMT.Tret.Dash.php +++ b/src/EMT.Tret.Dash.php @@ -10,7 +10,7 @@ class EMT_Tret_Dash extends EMT_Tret public $rules = array( 'mdash_symbol_to_html_mdash' => array( 'description' => 'Замена символа тире на html конструкцию', - 'pattern' => '/—/iu', + 'pattern' => '/—|--/iu', 'replacement' => '—' ), 'mdash' => array( @@ -72,4 +72,4 @@ class EMT_Tret_Dash extends EMT_Tret } -?> \ No newline at end of file +?>