Update the code type in the README.

The sample custom patterns were defined as `json`, which doesn't renders
nicely on GitHub. They are now defined as `js` which is much more
readable.
This commit is contained in:
Rodolphe Breard 2015-11-15 00:06:58 +01:00
parent 317389ec31
commit c296d354b2

View file

@ -79,7 +79,7 @@ This is a list of every components of the serial number. Each component is defin
A simple pattern matching a serial defined as an integer and followed by a comment starting by the word `serial` is: A simple pattern matching a serial defined as an integer and followed by a comment starting by the word `serial` is:
```json ```js
{ {
'regex': '\(\d\+\)\s*;\s*\cserial', 'regex': '\(\d\+\)\s*;\s*\cserial',
'matching': [ 'matching': [
@ -91,7 +91,7 @@ A simple pattern matching a serial defined as an integer and followed by a comme
The same example, but having the serial number starting by the current date (YYYYMMDD) and the integer padded on two digits: The same example, but having the serial number starting by the current date (YYYYMMDD) and the integer padded on two digits:
```json ```js
{ {
'regex': '\(\d\{8}\)\(\d\+\)\s*;\s*\cserial', 'regex': '\(\d\{8}\)\(\d\+\)\s*;\s*\cserial',
'matching': [ 'matching': [