Skip to content

Commit

Permalink
fix: url regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed May 8, 2023
1 parent cf533e3 commit 5eb4667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import '../styles/cmdk.css';
import { fansubs, types } from '../constant';
import { fetchResources } from '../fetch';

const DMHY_RE = /(?:https:\/\/share.dmhy.org\/topics\/view\/)?(\d+_\w+\.html)/;
const DMHY_RE = /(?:https:\/\/share.dmhy.org\/topics\/view\/)?(\d+_[a-zA-Z0-9_\-]+\.html)/;

const useActiveElement = () => {
const [listenersReady, setListenersReady] = useState(false);
Expand Down

0 comments on commit 5eb4667

Please sign in to comment.