Skip to content

Commit

Permalink
Update replace-delimiters.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
victorliu5296 committed Sep 25, 2024
1 parent 81721f0 commit 8d5ea46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions replace-delimiters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ replace_delimiters() {
# Double-escape commas
$content =~ s/\\,/\\\\,/g;
# Double-escape apostrophes (single quotes)
$content =~ s/(?<!\\\\)\\'/\\\\'/g;
# Double-escape underscores
$content =~ s/\\_/\\\\_/g;
Expand Down

0 comments on commit 8d5ea46

Please sign in to comment.