title: How does JavaScript split work on Arabic plus English number strings?
body: <p>When I tried splitting:</p>
  
  <pre><code>"بحد-8635".split('-')
  </code></pre>
  
  <p>then JavaScript gives me this result:</p>
  
  <pre><code>[0] - بحد,
  [1] - 8635
  </code></pre>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>console.log("بحد-8635".split('-'))</code></pre>
  </div>
  </div>
  </p>
  
  <p>And when I tried splitting:</p>
  
  <pre><code>"2132-سسس".split('-')
  </code></pre>
  
  <p>it gives me this different result:</p>
  
  <pre><code>[0] - 2132
  [1] - سسس
  </code></pre>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>console.log("2132-سسس".split('-'))</code></pre>
  </div>
  </div>
  </p>
  
  <p>How is this happening? How can this be implemented correctly?</p>