devsoc-unsw / trainee-uranus-24t1

3 stars 0 forks source link

Minor backend deploy fixes #30

Closed Chinosu closed 5 months ago

Chinosu commented 5 months ago

Change regex pattern from ['\"](.+/[^'\"]*?)['\"] to ['\"](\.+\/[^'\"]*?)['\"], which now ignores import statements that do not start with at least one dot followed by a slash

For example:

./xyz [YES]
.xyz [NO]
/xyz [NO]
../../xyz [YES]