File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -100,22 +100,22 @@ export default {
100100 getFieldID ( schema ) {
101101 // Try to get a reasonable default id from the schema,
102102 // then slugify it.
103- if ( typeof schema . id !== ' undefined' ) {
103+ if ( typeof schema . id !== " undefined" ) {
104104 // If an ID's been explicitly set, use it unchanged
105- return schema . id
105+ return schema . id ;
106106 } else {
107107 return ( schema . inputName || schema . label || schema . model )
108108 . toString ( )
109109 . trim ( )
110110 . toLowerCase ( )
111111 // Spaces to dashes
112- . replace ( / / g, '-' )
112+ . replace ( / / g, "-" )
113113 // Multiple dashes to one
114- . replace ( / - { 2 , } / g, '-' )
114+ . replace ( / - { 2 , } / g, "-" )
115115 // Remove leading & trailing dashes
116- . replace ( / ^ - + | - + $ / g, '' )
116+ . replace ( / ^ - + | - + $ / g, "" )
117117 // 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, "" )
119119 ;
120120 }
121121 }
Original file line number Diff line number Diff line change @@ -146,11 +146,11 @@ div
146146 // Should field type have a label?
147147 fieldTypeHasLabel (field ) {
148148 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 ;
154154 }
155155 },
156156
You can’t perform that action at this time.
0 commit comments