regexper-static/src/js/parser/javascript/regexp.js

10 lines
188 B
JavaScript
Raw Normal View History

export default {
matches() {
if (this.elements[1].regexp) {
return [this.match].concat(this.elements[1].regexp.matches());
} else {
return [this.match];
}
}
};