dbcli / pgspecial

Python implementation of postgres meta commands (backslash commands)
BSD 3-Clause "New" or "Revised" License
74 stars 54 forks source link

Fix one more spot where backslash-escaping in a string literal was not quite right #118

Closed musicinmybrain closed 3 years ago

musicinmybrain commented 3 years ago

Description

This is a follow-up to https://github.com/dbcli/pgspecial/pull/116 and https://github.com/dbcli/pgspecial/pull/105 before that.

r"(^\\e|\\e$)" is equivalent to "(^\\\\e|\\\\e$)".

Checklist

codecov-commenter commented 3 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ae1dcbc). Click here to learn what that means. The diff coverage is 65.86%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #118   +/-   ##
=========================================
  Coverage          ?   29.24%           
=========================================
  Files             ?        6           
  Lines             ?     2500           
  Branches          ?        0           
=========================================
  Hits              ?      731           
  Misses            ?     1769           
  Partials          ?        0           
Impacted Files Coverage Δ
pgspecial/help/commands.py 0.20% <ø> (ø)
pgspecial/main.py 38.18% <52.17%> (ø)
pgspecial/dbcommands.py 33.60% <66.73%> (ø)
pgspecial/iocommands.py 42.69% <68.05%> (ø)
pgspecial/namedqueries.py 92.00% <75.00%> (ø)
pgspecial/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ae1dcbc...72df3c3. Read the comment docs.

amjith commented 3 years ago

Looks good. Thank you!