Skip to content

Commit

Permalink
Allow '=' in asset paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Oct 19, 2022
1 parent b56eb29 commit fd0a644
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.1 on 2022-10-11 19:44
# Generated by Django 4.1.1 on 2022-10-19 16:07

from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -50,7 +50,7 @@ class Migration(migrations.Migration):
model_name='asset',
constraint=models.CheckConstraint(
check=models.Q(
('path__regex', '^([A-z0-9(),&\\s#+~_-]?\\/?\\.?[A-z0-9(),&\\s#+~_-])+$')
('path__regex', '^([A-z0-9(),&\\s#+~_=-]?\\/?\\.?[A-z0-9(),&\\s#+~_=-])+$')
),
name='asset_path_regex',
),
Expand Down
2 changes: 1 addition & 1 deletion dandiapi/api/models/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from .dandiset import Dandiset
from .version import Version

ASSET_CHARS_REGEX = r'[A-z0-9(),&\s#+~_-]'
ASSET_CHARS_REGEX = r'[A-z0-9(),&\s#+~_=-]'
ASSET_PATH_REGEX = fr'^({ASSET_CHARS_REGEX}?\/?\.?{ASSET_CHARS_REGEX})+$'


Expand Down

0 comments on commit fd0a644

Please sign in to comment.