Creating Base module and extracting placeholder rendering
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
export default {
|
||||
import _ from 'lodash';
|
||||
import Base from './base.js';
|
||||
|
||||
export default _.extend({}, Base, {
|
||||
matches() {
|
||||
if (this.elements[1].regexp) {
|
||||
return [this.match].concat(this.elements[1].regexp.matches());
|
||||
@@ -6,4 +9,4 @@ export default {
|
||||
return [this.match];
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user