Looking for some help ... I am trying to figure out why my substring test isn't working as I expect it to.
Looking for some help ... I am trying to figure out why my substring test isn't working as I expect it to.
For further actions, you may consider blocking this person and/or reporting abuse
Niaz Morshed -
Anuradha Aggarwal -
Alfredo Baldoceda -
Aaron K Saunders -
Once suspended, fyrfli will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, fyrfli will be able to comment and publish posts again.
Once unpublished, all posts by fyrfli will become hidden and only accessible to themselves.
If fyrfli is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Camille.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag fyrfli:
Unflagging fyrfli will restore default visibility to their posts.
Top comments (1)
I figured it out myself. Sort of. String.substring() doesn’t behave the way I expected it to. String.includes(substring) does the job.