Skip to content

Commit

Permalink
fix: slashy string doc
Browse files Browse the repository at this point in the history
escaping the slash.
"ends with slash ${'\\'}"
  • Loading branch information
jlguenego authored and paulk-asert committed Oct 9, 2024
1 parent 02ac82f commit 379ad88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec/doc/core-syntax.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ that in fact escaping is not supported. The slashy string `/\t/` won't contain a
a backslash followed by the character 't'. Escaping is only allowed for the slash character, i.e. `/\/folder/`
will be a slashy string containing `'/folder'`. A consequence of slash escaping is that a slashy string
can't end with a backslash. Otherwise that will escape the slashy string terminator.
You can instead use a special trick, `/ends with slash ${'\'}/`. But best just avoid using a slashy string in such a case.
You can instead use a special trick, `/ends with slash ${'\\'}/`. But best just avoid using a slashy string in such a case.
=== Dollar slashy string
Expand Down

0 comments on commit 379ad88

Please sign in to comment.