scrivo / highlight.php

A port of highlight.js by Ivan Sagalaev to PHP
BSD 3-Clause "New" or "Revised" License
695 stars 45 forks source link

Exit out early when empty string is split #80

Closed allejo closed 4 years ago

allejo commented 4 years ago

When splitCodeIntoArray() is given an empty string, we shouldn't be throwing a warning.

See https://github.com/westonruter/syntax-highlighting-code-block/issues/189