title: how to make Arabic/Persian characters valid for number input in angular?
body: <p>Assume that i have this below <code>input</code> in my application:</p>
  
  <pre><code>&lt;input ng-model="vm.nationalCode" ng-pattern="/^[0-9]{10}$/" required /&gt;
  </code></pre>
  
  <p>and i use <code>/^[0-9]{10}$/</code> to force user to enter 10 digit. everything is OK but when user trys to enter Arabic/Persian numbers something like <code>۰۱۲۳۴۵۶۷۸۹</code>, the validation is set to false.
  i know that <code>۰۱۲۳۴۵۶۷۸۹</code> is not a number, but how can i change <code>۰۱۲۳۴۵۶۷۸۹</code> to <code>0123456789</code> when user is typing and set validation to true?</p>