Skip to content
This repository was archived by the owner on Dec 25, 2017. It is now read-only.

Commit f63309f

Browse files
committed
👕 refactor(lint): fix eslint errors
1 parent 915bf29 commit f63309f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ langs.forEach(lang => {
1515
const installation = fs
1616
.readFileSync(`./gitbook/${lang}/installation.md`, 'utf-8')
1717
.replace(
18-
/<script src="https:\/\/unpkg\.com\/vue-validator@[\d\-\w\.]+.[\d]+\/dist\/vue-validator\.min\.js"><\/script>/,
18+
/<script src="https:\/\/unpkg\.com\/vue-validator@[\d\-\w.]+.[\d]+\/dist\/vue-validator\.min\.js"><\/script>/,
1919
'<script src="https://unpkg.com/vue-validator@' + pack.version + '/dist/vue-validator.min.js"></script>'
2020
)
2121
fs.writeFileSync(`./gitbook/${lang}/installation.md`, installation)

config/entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function toUpper (_, c) {
88
return c ? c.toUpperCase() : ''
99
}
1010

11-
const classifyRE = /(?:^|[-_\/])(\w)/g
11+
const classifyRE = /(?:^|[-_/])(\w)/g
1212
function classify (str) {
1313
return str.replace(classifyRE, toUpper)
1414
}

test/unit/components/validity/validate.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('validity component: validate', () => {
6767
}
6868
baseOptions.validators = {
6969
email (val) {
70-
return /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(val)
70+
return /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(val)
7171
},
7272
numeric: {
7373
message (field) {

0 commit comments

Comments
 (0)