正则表达式包·免费
代码搜索用正则
用于搜索代码的 20 个模式:TODO、调试输出、写死在代码里的密钥和令牌、函数和类的声明、import、空的 catch 块、Kotlin 的 !!、字符串、注释、合并冲突标记和超过 120 个字符的行。其中一个会删掉 JSON 里多余的结尾逗号。
免费安装。
如果你的 Android 设备上装了 PocketCode,这会在应用里打开此页面。
预览
20 个中的 3 个
(?-i)\b(?:TODO|FIXME|HACK|XXX|BUG)\b.*TODO, FIXME, HACK, XXX or BUG note (to the end of the line)
\b(?:console\.(?:log|debug|info|trace|dir)|System\.out\.print(?:ln)?|println|print|debugPrint|Log\.[vd]|Timber\.[vd])\s*Debug output call (console.log, println, print, Log.d)
(?i)\b(?:api[_-]?key|secret|token|passw(?:or)?d|auth[_-]?key|access[_-]?key)\w*["']?\s*[:=]\s*["'][^"'\s]{8,}["']Hard-coded secret (apiKey = "...", password: '...')
1.0.0 的变更
首个版本。