我有这样的模式
<input name="ip" ng-pattern="/^http:\/\/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]{4,5}/" class="form-control full-width text-right" type="text" ng-model="resource.ip"/>
最后一部分 {4,5} 至少为 4 且不超过 5。但是当我在末尾键入超过 5 个整数时,表单不会更改为 ng-invalid
知道为什么我的输入允许超过 5 个字符吗?