time_range_extractor 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/time_range_extractor/parser.rb +2 -2
- data/lib/time_range_extractor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fa0a534c7c9a6102514520292a6ce86a0d6896961d4886315231683407d4bf9
|
4
|
+
data.tar.gz: ebe57a9034aa3c80886b918605aa95b79c56ce633fd57957d716b21e759e3b8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08ecbd4a6fc791d9720486efa66fa4f0e82aa7c9c9c0e6f24fc98a50e4814a8a4be4b5e7620d23e2e27fd5495b4eb47395ce706397679326f3fa8f3c34172a6b'
|
7
|
+
data.tar.gz: 9a14db87419b1f7a1cd40f8aae5f7eaa97332c4f14f27fe29a28333b6a4e2cc768d1d3073bb79785a7a7bea1ca6d54bbe1b41ae987e04c93a9d1c14e077ce16f
|
data/Gemfile.lock
CHANGED
@@ -6,11 +6,11 @@ class Parser
|
|
6
6
|
PATTERN = /
|
7
7
|
(\A|\s|\() # space or round bracket, to support: "Call Jim (8-9pm)"
|
8
8
|
(
|
9
|
-
(?<start_time>[
|
9
|
+
(?<start_time>(2[0-4]|1[0-9]|[1-9]):?([0-5][0-9])?)\s?
|
10
10
|
(?<start_period>am|pm)?\s?
|
11
11
|
(to|-|until)\s?
|
12
12
|
)?
|
13
|
-
(?<end_time>[
|
13
|
+
(?<end_time>(2[0-4]|1[0-9]|[1-9]):?([0-5][0-9])?)?\s?
|
14
14
|
(?<end_period>am|pm)\s?
|
15
15
|
(?<time_zone>(
|
16
16
|
[ABCDEFGHIJKLMNOPRSTUVWY]
|