Skip to content

Commit

Permalink
fix: 특수문자가 들어간 타이틀 선택 안됨 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
UnhappyDogChew committed Aug 27, 2023
1 parent a64f059 commit f9a3fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from "axios";

export const parseSearch = (search) => {
const result = {};
const regex = /([a-zA-Z0-9\_]+)=([a-zA-Z0-9\_\%]+)/g;
const regex = /([a-zA-Z0-9\_]+)=([a-zA-Z0-9\_\%\:\!\-]+)/g;
let arr = regex.exec(search);
while (arr) {
result[arr[1]] = decodeURIComponent(arr[2]);
Expand Down

0 comments on commit f9a3fb0

Please sign in to comment.