skip to Main Content

Javascript – can a js URL object be a long number?

new URL(`http://12345678901`) is not valid but new URL(`http://1234567890`) and new URL(`http://a12345678901`) are. these work: console.log(new URL(`http://1234567890`)) console.log(new URL(`http://a12345678901`)) This does not: console.log(new URL(`http://12345678901`)) Here's the error in chrome: VM2064:1 Uncaught TypeError: Failed to construct 'URL': Invalid URL at :1:1 (anonymous)…

VIEW QUESTION

Python Pandas extract csv column containing json

I want to learn Pandas framework, so I find free csv with Euro data from kaggle.com https://www.kaggle.com/datasets/piterfm/football-soccer-uefa-euro-1960-2024/data But there're plenty of columns which looks like this subset['goals'][1] "[{'phase': 'FIRST_HALF', 'time': {'minute': 7, 'second': 41}, 'international_name': 'Xavi Simons', 'club_shirt_name': 'Xavi', 'country_code':…

VIEW QUESTION

javascript: string to object and dot notation

In the application I am working on, I have some configuration stored in a memo field in object literals. { JWT : { endpoint :"https://somelink1", clientid :"consent-management", grantType :"client_credentials" }, CMP : {endpoint :"https://someotherlink2", contentType :"application/json"} } Using regex and…

VIEW QUESTION
Back To Top
Search