Find $\lim_{x \to -1} 1/(\sqrt{|x|-\{-x\}})$ where $\{\}$ denotes the fractional part.
My attempt - $$\lim_{x \to -1} \frac{1}{\sqrt{|x| -\{x\}+1}}\\ \lim_{x \to -1} \frac{1}{\sqrt{|x|+1 -x +[x]}}$$
Now, $$\lim_{x \to -1+} \frac{1}{\sqrt{1+1+1 -1}} = \frac{1}{\sqrt{2}}\\ \lim_{x \to -1-} \frac{1}{\sqrt{1+1+1-2}} = 1$$
So, limit doesn't exist. But answer is given, that limit exists and is equal to $1$. Where did I go wrong$?$

If $x\in(-2,-1]$, then $|x|-\{-x\}=-x-(-1-x)=1$.
If $x\in(-1,0]$, then $|x|-\{-x\}=-x-(-x)=0$.
So the left-sided limit exists and equals $1/\sqrt 1=1$, but the right-sided limit does not exist $-$ the expression is not even defined on $(-1,0]$.