mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 22:01:13 +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 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
export default function isAuthPath(pathname: string) {
|
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
|
pathname
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue