Skip to content

Commit

Permalink
🐛 修复bv号格式改变
Browse files Browse the repository at this point in the history
  • Loading branch information
phidiaLam committed Sep 30, 2024
1 parent 5c61aa3 commit 783e094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/canteen/videoList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default {
components: { FormButton, draggable },
data() {
let validBV = (rule, value, callback) => {
let pattern = /^(BV)?1..4.1.7..$/i;
let pattern = /^(BV)?[a-zA-Z0-9]{10}$/i;
if (!pattern.test(value)) {
callback(new Error("你这BV号好像不太对诶"));
} else {
Expand Down

0 comments on commit 783e094

Please sign in to comment.