Skip to content

Commit

Permalink
fix: Make regex strings raw (deephaven#811)
Browse files Browse the repository at this point in the history
Regex strings should generally be raw as in "normal" strings, "\"
signifies an escape.
  • Loading branch information
jnumainville authored Sep 10, 2024
1 parent c735682 commit f1bb8b1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
# these are the patterns to watch for changes in this directory
# if in editable mode, the builder will rerun when these files change
REBUILD_REGEXES = [
".*\.py$",
".*\.js$",
".*\.ts$",
".*\.tsx$",
".*\.scss$",
r".*\.py$",
r".*\.js$",
r".*\.ts$",
r".*\.tsx$",
r".*\.scss$",
]

# ignore these patterns in particular
# prevents infinite loops when the builder is rerun
IGNORE_REGEXES = [
".*/dist/.*",
".*/build/.*",
".*/node_modules/.*",
".*/_js/.*",
r".*/dist/.*",
r".*/build/.*",
r".*/node_modules/.*",
r".*/_js/.*",
# ignore hidden files and directories
".*/\..*/.*",
r".*/\..*/.*",
]

# the path where the python files are located relative to this script
Expand Down
24 changes: 12 additions & 12 deletions tools/plugin_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@
# these are the patterns to watch for changes in the plugins directory
# if in editable mode, the builder will rerun when these files change
REBUILD_REGEXES = [
".*\.py$",
".*\.js$",
".*\.md$",
".*\.svg$",
".*\.ts$",
".*\.tsx$",
".*\.scss$",
r".*\.py$",
r".*\.js$",
r".*\.md$",
r".*\.svg$",
r".*\.ts$",
r".*\.tsx$",
r".*\.scss$",
]

# ignore these patterns in particular
# prevents infinite loops when the builder is rerun
IGNORE_REGEXES = [
".*/dist/.*",
".*/build/.*",
".*/node_modules/.*",
".*/_js/.*",
r".*/dist/.*",
r".*/build/.*",
r".*/node_modules/.*",
r".*/_js/.*",
# ignore hidden files and directories
".*/\..*/.*",
r".*/\..*/.*",
]


Expand Down

0 comments on commit f1bb8b1

Please sign in to comment.