From 465b26a4247c9073e47ef12ce4a890ef76ee1944 Mon Sep 17 00:00:00 2001 From: George Date: Sun, 15 Oct 2023 13:37:51 +0200 Subject: [PATCH] Try publis notam decoder 3 (#31) * chore($notam-decoder): release version 0.0.1 skip-checks:true [skip ci] * chore($notam-decoder): release version 0.0.1 skip-checks:true [skip ci] * fix: some documentation --- packages/notam-decoder/CHANGELOG.md | 4 ++++ packages/notam-decoder/README.md | 12 ++++-------- packages/notam-decoder/src/reducers/e-line.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/notam-decoder/CHANGELOG.md b/packages/notam-decoder/CHANGELOG.md index 2343ee7..77f0ce4 100644 --- a/packages/notam-decoder/CHANGELOG.md +++ b/packages/notam-decoder/CHANGELOG.md @@ -3,3 +3,7 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). ## 0.0.1 (2023-10-15) + +## 0.0.1 (2023-10-15) + +## 0.0.1 (2023-10-15) diff --git a/packages/notam-decoder/README.md b/packages/notam-decoder/README.md index d1761ab..0e8d471 100644 --- a/packages/notam-decoder/README.md +++ b/packages/notam-decoder/README.md @@ -1,11 +1,7 @@ -# notam-decoder +# NOTAM DECODER -This library was generated with [Nx](https://nx.dev). +This is a general purpose NOTAM Decoder. -## Building +## Usage -Run `nx build notam-decoder` to build the library. - -## Running unit tests - -Run `nx test notam-decoder` to execute the unit tests via [Jest](https://jestjs.io). +TBA diff --git a/packages/notam-decoder/src/reducers/e-line.ts b/packages/notam-decoder/src/reducers/e-line.ts index f66b57b..d9d6cbd 100644 --- a/packages/notam-decoder/src/reducers/e-line.ts +++ b/packages/notam-decoder/src/reducers/e-line.ts @@ -18,7 +18,7 @@ const reducer = (notam: DecodedNotam, line: string): DecodedNotam => { const splitted = extracted.split(' '); // To match punctuation at the end of a word - const punctuationRegex = /([.,;:!?\-]+)$/; + const punctuationRegex = /([.,;:!?-]+)$/; for (const word of splitted) { // Check if there's punctuation at the end of the word