Zachary Dremann d97525eb5e Avoid checking long strings for matching against whitespace
Previously, the string was checked for starting with newlines and ending
with spaces, then ensuring that the length of those substrings were
short enough to use our constant. Instead, only do the check for as many
items as we have in the WS constant.

In the worst case, this avoids an O(n) check if the input is a long
string of `\n`, possibly followed by a long string of spaces.
2020-07-06 16:07:29 -04:00
Description
A Rust compiler front-end for IDEs
332 MiB
Languages
Rust 96.8%
HTML 1.6%
TypeScript 1.5%