File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -100,22 +100,22 @@ export default {
100
100
getFieldID ( schema ) {
101
101
// Try to get a reasonable default id from the schema,
102
102
// then slugify it.
103
- if ( typeof schema . id !== ' undefined' ) {
103
+ if ( typeof schema . id !== " undefined" ) {
104
104
// If an ID's been explicitly set, use it unchanged
105
- return schema . id
105
+ return schema . id ;
106
106
} else {
107
107
return ( schema . inputName || schema . label || schema . model )
108
108
. toString ( )
109
109
. trim ( )
110
110
. toLowerCase ( )
111
111
// Spaces to dashes
112
- . replace ( / / g, '-' )
112
+ . replace ( / / g, "-" )
113
113
// Multiple dashes to one
114
- . replace ( / - { 2 , } / g, '-' )
114
+ . replace ( / - { 2 , } / g, "-" )
115
115
// Remove leading & trailing dashes
116
- . replace ( / ^ - + | - + $ / g, '' )
116
+ . replace ( / ^ - + | - + $ / g, "" )
117
117
// Remove anything that isn't a (English/ASCII) letter or number.
118
- . replace ( / ( [ ^ a - z A - Z 0 - 9 \. _ - ] + ) / g, '' )
118
+ . replace ( / ( [ ^ a - z A - Z 0 - 9 \. _ - ] + ) / g, "" )
119
119
;
120
120
}
121
121
}
Original file line number Diff line number Diff line change @@ -146,11 +146,11 @@ div
146
146
// Should field type have a label?
147
147
fieldTypeHasLabel (field ) {
148
148
switch (field .type ) {
149
- case ' button' :
150
- case ' submit' :
151
- return false ;
152
- default :
153
- return true ;
149
+ case " button" :
150
+ case " submit" :
151
+ return false ;
152
+ default :
153
+ return true ;
154
154
}
155
155
},
156
156
You can’t perform that action at this time.
0 commit comments