You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have looked at the examples provided that may showcase my question here?
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
The simple regex for splitting params using single quotes to encapsulate multiple words that was added in #541 appears to break on strings that contain single quotes. How do we escape them?
Token 1: ''
Token 2: hello
Token 3: single quoted
Token 4: worl'
Token 5: it's a test
Token 6: another 'example'
You can see that between encapsulating pairs of single quotes one could then add doubled single quotes to preserve literal ones.
The text was updated successfully, but these errors were encountered:
fiendish
changed the title
requiredIf/oneOf string containing single quotes?
requiredIf/oneOf multi-word strings containing single quotes?
Dec 20, 2024
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
The simple regex for splitting params using single quotes to encapsulate multiple words that was added in #541 appears to break on strings that contain single quotes. How do we escape them?
Code sample, to showcase or reproduce:
I think rather you want a pattern of
'([^']|'')*'|\S+
and then normalization bywhich would allow doubling the quotes up to escape them inside multi-word tokens.
here's a little test
You can see that between encapsulating pairs of single quotes one could then add doubled single quotes to preserve literal ones.
The text was updated successfully, but these errors were encountered: