Skip to content

Commit 9f3b616

Browse files
committed
Tighten up regex in react-native plugin
1 parent ff555f9 commit 9f3b616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/react-native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function normalizeUrl(url) {
1313
"use strict";
1414

1515
return url
16-
.replace(/file\:\/\//, '')
16+
.replace(/^file\:\/\//, '')
1717
.replace(DEVICE_PATH_RE, '');
1818
}
1919

0 commit comments

Comments
 (0)