You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/19 04:33:08 UTC

[05/50] [abbrv] incubator-weex git commit: * [test] check cn source

* [test] check cn source


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8cebed47
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8cebed47
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8cebed47

Branch: refs/heads/release
Commit: 8cebed477f64148167770ebdd7bfd32aed24830c
Parents: 4330ad6
Author: gurisxie <27...@qq.com>
Authored: Mon Oct 16 15:02:26 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 16 15:02:26 2017 +0800

----------------------------------------------------------------------
 dangerfile.js | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8cebed47/dangerfile.js
----------------------------------------------------------------------
diff --git a/dangerfile.js b/dangerfile.js
index 97c4146..bfa61fb 100644
--- a/dangerfile.js
+++ b/dangerfile.js
@@ -273,6 +273,14 @@ filesToVerifySrcHeader.forEach(filepath => {
       return;
     }
   }
+
+  // check cn for source code
+  var reg = /[\u4e00-\u9FA5]+/; 
+  var res = reg.test(content);
+  if(res){
+    fail("Code file "+ filepath +" has cn source code.");
+    return ;
+  }
 });