Skip to content

Commit

Permalink
fix some error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dotos committed Aug 8, 2017
1 parent ec44560 commit 08fe16a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/Valine.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valine",
"version": "1.0.8",
"version": "1.1.0",
"description": "A simple comment system based on Leancloud.",
"main": "/src/Valine.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/Valine.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class Valine {

const verify = {
mail(m) {
return /^[a-z]([a-z0-9]*[-_]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[\.][a-z]{2,3}([\.][a-z]{2})?$/i.test(m);
return /[\w-\.]+@([\w-]+\.)+[a-z]{2,3}/.test(m);
},
link(l) {
l = /^(http|https)/.test(l) ? l : `http://${l}`;
Expand Down
20 changes: 18 additions & 2 deletions src/Valine.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
font-size: 0;
.vident {
font-size: 14px;
width: 73%;
width: 85%;
display: inline-block;
padding: 5px;
vertical-align: middle;
Expand All @@ -27,10 +27,26 @@
font-size: 14px;
padding: 5px;
display: inline-block;
width: 27%;
width: 15%;
text-align: right;
vertical-align: middle;
}
@media screen and (min-width:620px) and (max-width:719px) {
.vident {
width: 88%;
}
.vright {
width: 12%;
}
}
@media screen and (max-width:480px) {
.vident {
width: 75%;
}
.vright {
width: 25%;
}
}
input {
background: transparent;
}
Expand Down

0 comments on commit 08fe16a

Please sign in to comment.