Merge pull request #3010 from chakflying/fix/grpc-invalid-regex

Fix: Remove invalid gRPC url regex
This commit is contained in:
Louis Lam 2023-04-11 18:43:51 +08:00 committed by GitHub
commit af6e01ee3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@
<!-- gRPC URL --> <!-- gRPC URL -->
<div v-if="monitor.type === 'grpc-keyword' " class="my-3"> <div v-if="monitor.type === 'grpc-keyword' " class="my-3">
<label for="grpc-url" class="form-label">{{ $t("URL") }}</label> <label for="grpc-url" class="form-label">{{ $t("URL") }}</label>
<input id="grpc-url" v-model="monitor.grpcUrl" type="url" class="form-control" pattern="[^\:]+:[0-9]{5}" required> <input id="grpc-url" v-model="monitor.grpcUrl" type="url" class="form-control" required>
</div> </div>
<!-- Push URL --> <!-- Push URL -->