Skip to content

fix: splitByRegExp for IE8#43

Merged
heenakwag merged 6 commits intomasterfrom
fix/regexp-for-ie8
Dec 19, 2019
Merged

fix: splitByRegExp for IE8#43
heenakwag merged 6 commits intomasterfrom
fix/regexp-for-ie8

Conversation

@heenakwag
Copy link
Member

Other browsers except IE8

var regexp = '/{{|}}/'
console.log(splitByRegExp('{{test}}', regexp)); // ['', 'test', '']

Before (IE8)

var regexp = '/{{|}}/';
console.log('{{test}}'.split(regexp)); // ['test']

After (IE8)

var regexp = '/{{|}}/'
console.log(splitByRegExp('{{test}}', regexp)); // ['', 'test', '']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants