JoliTypo\Fixer\Dash::fix PHP Метод

fix() публичный Метод

public fix ( $content, StateBag $stateBag = null )
$stateBag JoliTypo\StateBag
    public function fix($content, StateBag $stateBag = null)
    {
        $content = preg_replace('@(?<=[0-9 ]|^)-(?=[0-9 ]|$)@', Fixer::NDASH, $content);
        $content = preg_replace('@ ?-- ?([^-]|$)@s', Fixer::MDASH . '$1', $content);
        return $content;
    }
Dash