initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
9
deployphp/action-v1/node_modules/node-fetch/src/utils/get-search.js
generated
vendored
Normal file
9
deployphp/action-v1/node_modules/node-fetch/src/utils/get-search.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export const getSearch = parsedURL => {
|
||||
if (parsedURL.search) {
|
||||
return parsedURL.search;
|
||||
}
|
||||
|
||||
const lastOffset = parsedURL.href.length - 1;
|
||||
const hash = parsedURL.hash || (parsedURL.href[lastOffset] === '#' ? '#' : '');
|
||||
return parsedURL.href[lastOffset - hash.length] === '?' ? '?' : '';
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue