mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-22 05:09:05 +00:00
Send to zulip
This commit is contained in:
8
aws/lambda-nodejs18.x/UpdateZulipStreams/node_modules/loupe/lib/regexp.js
generated
vendored
Normal file
8
aws/lambda-nodejs18.x/UpdateZulipStreams/node_modules/loupe/lib/regexp.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { truncate } from './helpers'
|
||||
|
||||
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