File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,15 +255,15 @@ const RMETemplateResolver = (function() {
255255 }
256256
257257 match = tag . match ( / [ a - z 0 - 9 ] + \# [ a - z A - Z 0 - 9 \- ] + / ) ; //find id
258- if ( ! Util . isEmpty ( match ) )
258+ if ( Util . notEmpty ( match ) )
259259 resolved . setId ( match . join ( ) . replace ( / [ a - z 0 - 9 ] + \# / g, "" ) ) ;
260260
261- match = this . cutAttributesIfFound ( tag ) . match ( / \. [ a - z A - Z - 0- 9 \- ] + / g) ; //find classes
262- if ( ! Util . isEmpty ( match ) )
261+ match = this . cutAttributesIfFound ( tag ) . match ( / \. [ a - z A - Z - 0- 9 _ \- ] + / g) ; //find classes
262+ if ( Util . notEmpty ( match ) )
263263 resolved . addClasses ( match . join ( " " ) . replace ( / \. / g, "" ) ) ;
264264
265265 match = tag . match ( / \[ [ a - z A - Z 0 - 9 \= \: \( \) \# \- \_ \/ \. & % @ ! ? £ $ + ¤ | ; \\ < \\ > \\ { } " ] + \] / g) ; //find attributes
266- if ( ! Util . isEmpty ( match ) )
266+ if ( Util . notEmpty ( match ) )
267267 resolved = Template . addAttributes ( resolved , match ) ;
268268
269269 return resolved ;
You can’t perform that action at this time.
0 commit comments