dreamhead / moco

Easy Setup Stub Server
MIT License
4.36k stars 1.08k forks source link

Glob Inclusion Issue #253

Open hiiloveyou opened 5 years ago

hiiloveyou commented 5 years ago

Hello dear: I have met a question when I use the global Inclusion in my project like this :

[
    {
        "include" : "*.json"
    }
]

but there exists a problem

[main] ERROR Illegal char <*> at index 0: *.json

I try to escape the regular with \*, but it does work. I do not know how to deal with it , please give me some advice,thank you!!!

dreamhead commented 5 years ago

Glob inclusion is provided in 0.12.0, please check your Moco version. On the other hand, it is used for global configuration which is used with "-g" option.

hiiloveyou commented 5 years ago

Thank you for your answer! I hava checked my moco, My Moco version is 0.12.0, and this is my start command :

hgxvf_6ddq0 j yys ku 3 this is my global configuration file:

9 nk f6 b 4 uk_inahm4

waitshang commented 5 years ago

Thank you for your answer! I hava checked my moco, My Moco version is 0.12.0, and this is my start command :

hgxvf_6ddq0 j yys ku 3 this is my global configuration file:

9 nk f6 b 4 uk_inahm4

@dreamhead I have found that it's related with platform. In Windows, it can't be built successfully. In Mac, everything is OK.

dreamhead commented 5 years ago

@waitshang Thank you for your reminder.