No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
c00fb02
... +0 ...
49d6bd8
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
264 | 264 | // of the RegExp methods (a `\` followed by a variable or value is |
|
265 | 265 | // likely part of a division, not a regex) |
|
266 | 266 | $keywords = array('do', 'in', 'new', 'else', 'throw', 'yield', 'delete', 'return', 'typeof'); |
|
267 | - | $before = '(^|[=:,;\+\-\*\/\}\(\{\[&\|!]|'.implode('|', $keywords).')\s*'; |
|
267 | + | $before = '(^|[=:,;\+\-\*\?\/\}\(\{\[&\|!]|'.implode('|', $keywords).')\s*'; |
|
268 | 268 | $propertiesAndMethods = array( |
|
269 | 269 | // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#Properties_2 |
|
270 | 270 | 'constructor', |
284 | 284 | ); |
|
285 | 285 | $delimiters = array_fill(0, count($propertiesAndMethods), '/'); |
|
286 | 286 | $propertiesAndMethods = array_map('preg_quote', $propertiesAndMethods, $delimiters); |
|
287 | - | $after = '(?=\s*([\.,;\)\}&\|+]|\/\/|$|\.('.implode('|', $propertiesAndMethods).')))'; |
|
287 | + | $after = '(?=\s*([\.,;:\)\}&\|+]|\/\/|$|\.('.implode('|', $propertiesAndMethods).')))'; |
|
288 | 288 | $this->registerPattern('/'.$before.'\K'.$pattern.$after.'/', $callback); |
|
289 | 289 | ||
290 | 290 | // regular expressions following a `)` are rather annoying to detect... |
Files | Complexity | Coverage |
---|---|---|
src | ø | 99.56% |
Project Totals (3 files) | 118 | 99.56% |
49d6bd8
c00fb02