oyejorge / less.php

less.js ported to PHP.
http://lessphp.typesettercms.com
Apache License 2.0
656 stars 2 forks source link

Use strpos (much faster than preg_match) to determine if a char is a white space #327

Open mlocati opened 8 years ago

mlocati commented 8 years ago

What about using strpos instead of the slower preg_match?

White space characters are defined by the PCRELib as: