mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Simplify regular expressions
This commit is contained in:
@@ -9,7 +9,7 @@ interface formatOptions {
|
||||
s?: string;
|
||||
}
|
||||
// RegExp for various js functions
|
||||
const var_js = '[a-zA-Z_\\$][a-zA-Z_0-9]*';
|
||||
const var_js = '[a-zA-Z_\\$]\\w*';
|
||||
const singlequote_js = `'[^'\\\\]*(:?\\\\[\\s\\S][^'\\\\]*)*'`;
|
||||
const duoblequote_js = `"[^"\\\\]*(:?\\\\[\\s\\S][^"\\\\]*)*"`;
|
||||
const quote_js = `(?:${singlequote_js}|${duoblequote_js})`;
|
||||
|
||||
Reference in New Issue
Block a user