Skip to content
#

string

Here are 1,475 public repositories matching this topic...

ctaleck
ctaleck commented Jul 3, 2018

When I use strman.format, I have to wrap the parameters in an Array as stated, but the documentation shows differently:

const select = `SELECT * FROM CONTACTS WHERE NAME LIKE '%{0}%' AND EMAIL LIKE '%{1}%'`
format(select, 'DANIEL', 'GMAIL')
// => `SELECT * FROM CONTACTS WHERE NAME LIKE '%DANIEL%' AND EMAIL LIKE '%GMAIL%'`

In my tests, I have to use:

format(select, ['DANIEL',

The official repository for our programming kitchen which consists of 50+ delicious programming recipes having all the interesting ingredients ranging from dynamic programming, graph theory, linked lists and much more. All the articles contain beautiful images and some gif/video at times to help clear important concepts.

  • Updated Aug 7, 2019
  • Python

Improve this page

Add a description, image, and links to the string topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the string topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.