* Checks if the given file is of the form validator-.*\.(html|out|out.cpponly|protoascii) * * @param {string} file * @return {boolean}
(file)
| 98 | * @return {boolean} |
| 99 | */ |
| 100 | function isValidatorFile(file) { |
| 101 | const name = path.basename(file); |
| 102 | return ( |
| 103 | name.startsWith('validator-') && |
| 104 | (name.endsWith('.out') || |
| 105 | name.endsWith('.out.cpponly') || |
| 106 | name.endsWith('.html') || |
| 107 | name.endsWith('.protoascii')) |
| 108 | ); |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * A dictionary of functions that match a given file to a given build target. |