Skip to content

Instantly share code, notes, and snippets.

@drguildo
Created April 30, 2015 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drguildo/1edbca6053e11b058723 to your computer and use it in GitHub Desktop.
Save drguildo/1edbca6053e11b058723 to your computer and use it in GitHub Desktop.
if (buffer.startsWith(" ")) {
String trimmed = buffer.trim();
matchStart += buffer.indexOf(trimmed.charAt(0));
buffer = buffer.substring(matchStart);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment