-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to ie11 #1
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
{ | ||
"name": "url-regex", | ||
"name": "@tactivos/url-regex", | ||
"version": "5.0.0", | ||
"description": "Regular expression for matching URLs", | ||
"license": "MIT", | ||
"repository": "kevva/url-regex", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/tactivos/url-regex.git" | ||
}, | ||
"author": { | ||
"name": "Kevin Mårtensson", | ||
"email": "[email protected]", | ||
|
@@ -32,5 +35,12 @@ | |
"ava": "^1.4.1", | ||
"tsd": "^0.7.2", | ||
"xo": "^0.24.0" | ||
}, | ||
"xo": { | ||
"rules": { | ||
"prefer-object-spread": 0, | ||
"prefer-arrow-callback": 0, | ||
"no-var": 0 | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,11 @@ | |
|
||
> Regular expression for matching URLs | ||
|
||
## Source | ||
|
||
Forked from [url-regex](https://github.com/kevva/url-regex) so we can improve the compability with IE11 or other browsers. | ||
Needed for consuming it from surface hubs or windows app. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why we need this for the hubs and windows app ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. url-regex was imported as a regular dependency (meaning that it would not run through Babel), and it was recently upgraded because of security reasons. The thing is that in the upgrade, some non-ie11 compliant features were introduced (like arrow functions and const declarations) and it broke our windows apps. The other option was to change the build process to include url-regex in the babel run, but this option is safer (and the lib is simple enough) |
||
|
||
Based on this [gist](https://gist.github.com/dperini/729294) by Diego Perini. | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be useful to list in the description the two changes that you make here:
const
tovar