Skip to content

Commit

Permalink
Merge pull request #34028 from dimagi/jls/string-check
Browse files Browse the repository at this point in the history
Updated build_requirejs string check
  • Loading branch information
orangejenny committed Jan 24, 2024
2 parents 5b2b693 + c8ff3dd commit 0473c03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def _get_main_js_modules_by_dir(html_files):
main = match.group(1)
directory = match.group(2)
if os.path.exists(os.path.join(ROOT_DIR, 'staticfiles', main + '.js')):
if not re.search(r'/spec/', main):
if '/spec/' not in main:
dirs[directory].add(main)
return dirs

Expand Down

0 comments on commit 0473c03

Please sign in to comment.