can't return regex as string due to serialization #3237
-
I tried to return the above regex. but it always replaces any solution for this? |
Beta Was this translation helpful? Give feedback.
Answered by
IvanGoncharov
Apr 6, 2020
Replies: 1 comment
-
@Chathula Both JSON and Node's
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
saihaj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Chathula Both JSON and Node's
inspect
add slash but it doesn't exist in string itself and you can check this usingconsole.log
: