mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 06:36:17 +00:00
Updated the regex for isAuthPath to reduce false positive hits (#1806)
* OUpdated the regex for isAuthPath to reduce false positive hits as described in issue #1704 * Updated the regex for isAuthPath to reduce false positive hits - Re-ran Linting
This commit is contained in:
parent
26979b91c2
commit
ba9389c15e
|
@ -1,5 +1,5 @@
|
|||
export default function isAuthPath(pathname: string) {
|
||||
return /^\/create_.*|inbox|settings|admin|reports|registration_applications/g.test(
|
||||
return /^\/(create_.*?|inbox|settings|admin|reports|registration_applications)\b/g.test(
|
||||
pathname
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue