Comments (3)
This also may be because of my regex for regexes:
var re_re = /^\/((?:\\\/|[^/]|\[[^\]]*\/[^\]]*\])+)\/([gimy]*)$/;
Your regex is quite fragile you can't have escaped \/
inside regex literal.
from js2php.
@jcubic can you check this pull-request? there are a bunch of additions I haven't tested yet. maybe your case has been fixed here: #42
from js2php.
when I tried some code on demo page I also got
Uncaught TypeError: (intermediate value).match is not a function
I narrowed down the line which causes it, it is:
y = i[+1];
I tried with different variable names. but seems that index [1] causing this. when I changed to y = i[0+1];
or y = i[+1];
it started working
from js2php.
Related Issues (20)
- ReactJS server (ReactDOMServer) side rendering HOT 2
- Please add support for ES6 Immediately-invoked function HOT 3
- brackets are lost HOT 2
- Throwing error HOT 2
- JS string concat issue HOT 1
- string.match not working when called on a variable. HOT 1
- .length not always working on strings HOT 1
- Global parseInt and parseFloat functions HOT 3
- Problem with new global function implementation.
- remove console.log
- Set / get property on object
- try catch support
- No mention which version of PHP this targets in README.md
- /js2php/core/function.js:19 HOT 3
- return x[1]; HOT 4
- Handling arrays
- tweetnacljs cryptolibrary in php
- include_once, include, require or require_once how can i create it?
- Cannot run program over terminal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js2php.