just-clone question about cloning regexp
Open
- Dominant language
- JavaScript
- Stars
- 6.2k
- Forks
- 209
- PR merge metrics
- No merged PRs in 30d
Description
I saw the following code
` if (typeof regExp.source.flags == 'string') {
return regExp.source.flags;
}`
But shouldn't source just be a string? Will it have a flags attribute?
I hope someone can answer my question, thank you very much
Contributor guide
Assessment
This issue has not been assessed yet.