Skip to content

Convert find_alnum_point to find the first non-whitespace point

Alexander Chueshev requested to merge ac/fix-find-non-whitespace-point into main

This is a small fix to support languages other than Python with cleaning code completions up to the end of the target block.

Prompt:

const newFunctionForValidatingEmail = (email) => {
  return emailRegex.test(email);
<cursor>

Before:

Output:

}

const newFunctionForValidatingPassword = (password) => {
  return passwordRegex.test(password);
};

After:

Output:

};

Ref - #273 (comment 1534115338).

Edited by Alexander Chueshev

Merge request reports