| 6 | /* eslint no-useless-escape:0 import/prefer-default-export:0 */ |
| 7 | const reg = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/; |
| 8 | export const isUrl = path => reg.test(path); |
| 9 | |
| 10 | export const getPageQuery = () => parse(window.location.href.split('?')[1]); |
| 11 | /** |