Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Revise pattern matching in uploaded file path detector. (#634)
This patch introduces a small change, where previously the detection for user-uploaded content paths ran multiple checks against the path for possible directories. Now, a single `RegExp` pattern checks in a single pass if the path refers to one of the intended directories. Performance impact should be negligible, but why do five times what can mostly be done once. cc: @ironprogrammer whose work in #633 prompted this change.
- Loading branch information