Enter a negative number in the input number field and validation with ng-pattern-restrict

I’m having problems with ng-pattern-restrict
I have an input number field with ng-pattern-restrict = "^. {0,13}? $"
But when I wanted to enter a negative number, I tried two ways:

ng-pattern-restrict = "^ - d {0,13}? $": This way, the negative number is good, but it does not allow you to enter positive numbers, because the character at the start must be (-)

ng-pattern-restrict = "^ d {0,13} ( - d {0,13})? $": this method allows to enter a positive number, but it does not allow you to enter negative numbers, because it requires a number in front
Looking forward to having someone help me the other way,
Thanks and Best Regards

Source: AngularJS