* [iOS] trim jsbundle string, so that we can parse the bundleType
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/664ab3f8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/664ab3f8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/664ab3f8 Branch: refs/heads/master Commit: 664ab3f8854f9bde2a1b7b8193875cc9c16a7c0d Parents: f1184c5 Author: acton393 <[email protected]> Authored: Thu Jan 18 11:02:11 2018 +0800 Committer: acton393 <[email protected]> Committed: Thu Jan 18 11:02:11 2018 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/664ab3f8/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m index a6b1fc8..08604f2 100644 --- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m +++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m @@ -527,6 +527,7 @@ _Pragma("clang diagnostic pop") \ // Fallback on earlier versions return bundleType; } + jsBundleString = [jsBundleString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; if (!jsBundleString ) { return bundleType; }
