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:
parent
317389ec31
commit
c296d354b2
1 changed files with 2 additions and 2 deletions
|
@ -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': [
|
||||||
|
|
Reference in a new issue