Dotos %!s(int64=9) %!d(string=hai) anos
pai
achega
6469d89856
Modificáronse 2 ficheiros con 5 adicións e 3 borrados
  1. 2 2
      app.js
  2. 3 1
      readme.md

+ 2 - 2
app.js

@@ -23,7 +23,7 @@ var app = express();
 //app.listen(process.env.PORT || 5000);
 
 /***
- * 统一过滤,打印日志
+ * 全局过滤,统计和日志
  */
 app.all('*', function(req, res, next) {
     res.header("Access-Control-Allow-Origin", "*");
@@ -54,7 +54,7 @@ app.all('*', function(req, res, next) {
      *      图片文件
      *      (JS文件可能有特殊统计需求,需要单独判断)
      */
-    var filter = /_detect|.css|favicon.ico|robots.txt|.png|.jpg|.gif/i.test(originalUrl);
+    var filter = /_detect|\.css|favicon\.ico|robots\.txt|\.png|\.jpg|\.gif/i.test(originalUrl);
     if (!filter) {
         /**
          * console.log(req.query):

+ 3 - 1
readme.md

@@ -1,5 +1,7 @@
 # JsonBird
-A JSON Remote Agent Service | 一个远程JSON代理服务 **[HOMEPAGE](https://bird.ioliu.cn)**
+A JSON Remote Agent Service | 一个远程JSON代理服务 
+
+**[HOMEPAGE](https://bird.ioliu.cn)** | [Demo](https://jsfiddle.net/LNing/duL5Lby7/)
 
 ![npm:v3.10.3](https://img.shields.io/badge/npm-v3.10.3-blue.svg)
 ![express:v4.13.4](https://img.shields.io/badge/express-v4.13.4-blue.svg)