Browse Source

fix/simplify regular expression

keigo-h 4 years ago
parent
commit
b6b0e9c1d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/client/services/ShowPageAccessories.tsx

+ 1 - 1
packages/app/src/client/services/ShowPageAccessories.tsx

@@ -13,7 +13,7 @@ const ShowPageAccessoriesModal = (): JSX.Element => {
   useEffect(() => {
   useEffect(() => {
     const pageIdParams = getURLQueryParamValue('compare');
     const pageIdParams = getURLQueryParamValue('compare');
     if (pageIdParams != null) {
     if (pageIdParams != null) {
-      if (/([a-z]|[0-9]){24}\.{3}([a-z]|[0-9]){24}/.test(pageIdParams)) {
+      if (/([a-z0-9]){24}...([a-z0-9]){24}/.test(pageIdParams)) {
         openPageAccessories(PageAccessoriesModalContents.PageHistory);
         openPageAccessories(PageAccessoriesModalContents.PageHistory);
       }
       }
     }
     }