You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We disable english input using the \w+ regular expression. Turns out this is not good enough since, for instance, it allows russian input. What we really want is to only allow hebrew input + ctrl characters.
Implement this (from stack overflow)
You can check the Unicode block for this language here, I guess it is Hebrew, so the code range is 0590-05FF.
Then you can use ngPattern to do the validation like this:
function ctrl($scope) { $scope.pattern = /[\u0590-\u05FF]+/g; }
While doing this, better have the אנא השתמשו במקלדת עברית message time out after 5 seconds or something like that.
The text was updated successfully, but these errors were encountered:
We disable english input using the \w+ regular expression. Turns out this is not good enough since, for instance, it allows russian input. What we really want is to only allow hebrew input + ctrl characters.
Implement this (from stack overflow)
You can check the Unicode block for this language here, I guess it is Hebrew, so the code range is 0590-05FF.
Then you can use ngPattern to do the validation like this:
function ctrl($scope) { $scope.pattern = /[\u0590-\u05FF]+/g; }
While doing this, better have the אנא השתמשו במקלדת עברית message time out after 5 seconds or something like that.
The text was updated successfully, but these errors were encountered: