From 7d2553726da650c02d26ea78a4ef1dfe2e46d4be Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Sat, 29 Feb 2020 15:09:37 +0800 Subject: [PATCH] feat:dont show es5 bundle in demo --- doric-iOS/Example/Example/ViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-iOS/Example/Example/ViewController.m b/doric-iOS/Example/Example/ViewController.m index 795729d0..7f4309d5 100644 --- a/doric-iOS/Example/Example/ViewController.m +++ b/doric-iOS/Example/Example/ViewController.m @@ -27,7 +27,7 @@ - (void)viewDidLoad { NSString *demoPath = [path stringByAppendingPathComponent:@"src"]; NSFileManager *mgr = [NSFileManager defaultManager]; self.demoFilePaths = [[mgr subpathsAtPath:demoPath] filter:^BOOL(NSString *obj) { - return ![obj containsString:@".map"]; + return ![obj containsString:@".map"] && ![obj containsString:@"es5."]; }]; NSMutableArray *tmp = [self.demoFilePaths mutableCopy]; NSStringCompareOptions comparisonOptions = NSCaseInsensitiveSearch | NSNumericSearch | NSWidthInsensitiveSearch | NSForcedOrderingSearch;