Unverified Commit 8e8eec3b authored by nivak-monarch's avatar nivak-monarch Committed by GitHub

fix: added tab and carriage to isWhitespace function to make robust (#47785)

parent 2601f559
function isWhitespace(char: string) {
return char === ' ' || char === '\n'
// Returns true if the given character is a whitespace character, false otherwise.
function isWhitespace(char: string): boolean {
return char === ' ' || char === '\n' || char === '\t' || char === '\r'
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment