I'm using xeditable angular directive. I need to use a regex in one of my fields to validate positive decimal values
. However, it's not working properly. Could you tell me why? Thanks in advance.
Example values include 12,125.25
, etc.
<span editable-text="user.name" e-form="tableform" e-pattern="/^\d+(\.\d{1,2})?$/">
{{ user.name || 'empty' }}
</span>