Skip to content

Commit

Permalink
Merge pull request #60 from Enraged-Dun-Cookie-Development-Team/feat-…
Browse files Browse the repository at this point in the history
…bvFormat

🐛 修复bv号格式改变
  • Loading branch information
phidiaLam authored Sep 30, 2024
2 parents 5c61aa3 + 783e094 commit bc1fbed
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 bc1fbed

Please sign in to comment.