socketdev / tc39-propoal-progress-allowing-regexp Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
See: https://github.com/iter-tools/regex. It contains a proposed API as well as a polyfill implementation. Thanks to @jcbhmr for pointing this proposal out to me!
Would it be a extends TransformStream
class? A .feed()
method? A .hitEnd
property? An override of .exec()
with two parameters? A flag like /regex/p
?
I know this is way ahead of a stage -1 proposal. I'm just a curious user who wants to know what kind of API I could use in a ponyfill of a similar MyCustomProgressiveRegExp
class.
You can close this issue if this question is too far in the future
for a given set of text manipulating chunks: a
and b
and a pattern p
:
// any <br> following another <br>
let p = /(?<=<br>)<br>/
let a = ''
let b = '<br>'
Match results from b
would change if a
changed to <br>
. When matching just b
individually it would be good to know if it backtracked to the start of b
for lookbehind not just if it reached the end of b
.
This is a slight oddity due to less ecosystem data on lookbehind. This could be in or out of scope depending.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.