• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

future-architect / eslint-plugin-vue-scoped-css / 14774400750

pending completion
14774400750

Pull #392

github

web-flow
Merge bc68239aa into 8e9b9c3d4
Pull Request #392: chore(deps): update dependency eslint-plugin-node-dependencies to v1

1454 of 1669 branches covered (87.12%)

Branch coverage included in aggregate %.

2778 of 2917 relevant lines covered (95.23%)

406.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/lib/utils/regexp.ts
1
const RE_REGEXP_STR = /^\/(.+)\/([A-Za-z]*)$/u;
1✔
2

3
/**
4
 * Convert a string to the `RegExp`.
5
 * Normal strings (e.g. `"foo"`) is converted to `/foo/` of `RegExp`.
6
 * Strings like `"/^foo/i"` are converted to `/^foo/i` of `RegExp`.
7
 *
8
 * @param {string} string The string to convert.
9
 * @returns {RegExp} Returns the `RegExp`.
10
 */
11
export function toRegExp(string: string, flags?: string): RegExp {
1✔
12
  const parts = RE_REGEXP_STR.exec(string);
6✔
13
  if (parts) {
6✔
14
    let flagArgs: string;
15
    if (flags) {
6!
16
      flagArgs = [...new Set(parts[2] + flags)].join("");
6✔
17
    } else {
18
      flagArgs = parts[2];
×
19
    }
20

21
    return new RegExp(parts[1], flagArgs);
6✔
22
  }
23
  return new RegExp(string, flags);
×
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc