Skip to content

Commit

Permalink
escape $ properly (#37)
Browse files Browse the repository at this point in the history
escape properly

Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson authored May 2, 2024
1 parent 0d92033 commit 3199329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readfcs/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _channels_to_df(meta_raw: dict) -> dict:
# channel groups are $PnB, $PnS, $PnN...
for k, v in meta_raw.items():
# Get all fields with $PnX pattern
if re.match("^\$P\d+[A-Z]$", k): # noqa
if re.match(r"^\$P\d+[A-Z]$", k): # noqa
group_key = f"$Pn{k[-1]}"
if group_key not in channel_groups:
channel_groups[group_key] = []
Expand Down

0 comments on commit 3199329

Please sign in to comment.