(Adaptive Loop) Pass 3
(Adaptive Loop) Record freeze commit hash in context manifest
This commit is contained in:
1 parent
816a0d8e14
commit
00f4c34da0
1079 files changed
+1131878
No files matched your search
+7
@@ -0,0 +1,7 @@
|
||||
import { truncate } from './helpers.js';
|
||||
export default function inspectRegExp(value, options) {
|
||||
const flags = value.toString().split('/')[2];
|
||||
const sourceLength = options.truncate - (2 + flags.length);
|
||||
const source = value.source;
|
||||
return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, 'regexp');
|
||||
}
|
||||
Reference in new issue
Block a user