Skip to content

Commit ff6d179

Browse files
committed
cshtml: use the .json extension for JSON files
Correctly reference accepted format as JSON instead of JS. Closes: #176
1 parent 4ae879f commit ff6d179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cshtml.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ std::string titleFromFileName(const std::string &fileName)
4242
// no version information -> bailing out
4343
return "";
4444

45-
const RE reTitle("^(?:.*/)?([^/]*)\\.(?:err|js)$");
45+
const RE reTitle("^(?:.*/)?([^/]*)\\.(?:err|js|json)$");
4646

4747
boost::smatch sm;
4848
if (!boost::regex_match(fileName, sm, reTitle))
@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
6464
namespace po = boost::program_options;
6565
po::variables_map vm;
6666
po::options_description desc(string("Usage: ") + name
67-
+ " [options] proj.js, where options are", /* line_length */ 0x80);
67+
+ " [options] proj.json, where options are", /* line_length */ 0x80);
6868

6969
typedef std::vector<string> TStringList;
7070
string defUrlTemplate, fnBase, checkerIgnRegex, plainTextUrl, spPosition;

0 commit comments

Comments
 (0)