File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ module.exports = ({
3333 title . length > 50 ? 'Title must not be longer than 32 characters'
3434 : title . length <= 2 ? 'Title must be longer than 2 characters'
3535 : url . length > 500 ? 'URL must not be longer than 500 characters'
36- : ! / ^ h t t p s : \/ \/ ( g i t h u b \. c o m \/ [ ^ \/ ] + \/ [ ^ \/ ] + | c o d e p e n \. i o \/ [ ^ \/ ] + \/ p e n \/ [ ^ \/ ] + | j s f i d d l e \. n e t \/ [ ^ \/ ] + ) \S * / . test ( url ) ? 'Invalid URL'
3736 : ''
3837
3938 if ( error ) return res . json ( {
Original file line number Diff line number Diff line change 1717 v-model =" inputs.url"
1818 />
1919 <p class =" error" v-show =" errors.url.length > 0" >{{errors.url}}</p >
20- <p :class =" `${!user.id ? 'disabled' : ''}`" >
20+ <!-- < p :class="`${!user.id ? 'disabled' : ''}`">
2121 *Must be a <a
2222 href="https://github.com/"
2323 target="_blank"
2828 href="https://jsfiddle.net/"
2929 target="_blank"
3030 >JSFiddle</a> link.
31- </p >
31+ </p> -->
3232 <!-- <textarea
3333 placeholder="Brief description of your project, not required"
3434 @blur="e => errorCheck('description')"
183183 case ' url' :
184184 this .errors .url =
185185 url .length > 500 ? ' URL must not be longer than 500 characters'
186- : ! / ^ https:\/\/ (github\. com\/ [^ \/ ] + \/ [^ \/ ] + | codepen\. io\/ [^ \/ ] + \/ pen\/ [^ \/ ] + | jsfiddle\. net\/ [^ \/ ] + )\S * / .test (url) ? ' Invalid URL'
187186 : ' '
188187 break
189188 // case 'description':
You can’t perform that action at this time.
0 commit comments