nycJSorg/angular-presentation

View on GitHub
apps/kirjs/src/app/modules/ast/samples/find-debugger/find-debugger-regex.solved.js

Summary

Maintainability
A
0 mins
Test Coverage
function findDebugger(code) {
  return code
    .replace(/\/\/.*|'.*?[^\\]'|".*?"|`[\s\S]*`|\/\*[\s\S]*\*\//)
    .match(/\bdebugger\b/);
}