mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Adjust spacing in template string expressions.
This commit is contained in:
@@ -89,7 +89,7 @@ function truncate(string, options) {
|
||||
const substring = result
|
||||
|
||||
if (!separator.global) {
|
||||
separator = RegExp(separator.source, `${ reFlags.exec(separator) || '' }g`)
|
||||
separator = RegExp(separator.source, `${reFlags.exec(separator) || ''}g`)
|
||||
}
|
||||
separator.lastIndex = 0
|
||||
while ((match = separator.exec(substring))) {
|
||||
|
||||
Reference in New Issue
Block a user