From c296d354b222212a3c604dc448f073231a6a799b Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sun, 15 Nov 2015 00:06:58 +0100 Subject: [PATCH] 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c1d8102..d38b010 100644 --- a/README.md +++ b/README.md @@ -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: -```json +```js { 'regex': '\(\d\+\)\s*;\s*\cserial', '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: -```json +```js { 'regex': '\(\d\{8}\)\(\d\+\)\s*;\s*\cserial', 'matching': [