From a9fc0e4b445af06b287cd154bf1b49f19be50b3a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Wed, 4 Nov 2020 22:25:45 +0100 Subject: [PATCH] Fix dots in regex --- src/serviceproviders/github.js | 2 +- src/serviceproviders/hackernews.js | 2 +- src/serviceproviders/lobsters.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/serviceproviders/github.js b/src/serviceproviders/github.js index 09a392b..ca1a3a3 100644 --- a/src/serviceproviders/github.js +++ b/src/serviceproviders/github.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const reURI = /^https:\/\/gist.github.com\/(.*)\/(.*)\/?/ +const reURI = /^https:\/\/gist\.github\.com\/(.*)\/(.*)\/?/ const processURI = (uri, opts) => { if (!opts) { opts = {} } diff --git a/src/serviceproviders/hackernews.js b/src/serviceproviders/hackernews.js index 36f46f0..c979940 100644 --- a/src/serviceproviders/hackernews.js +++ b/src/serviceproviders/hackernews.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const reURI = /^https:\/\/news.ycombinator.com\/user\?id=(.*)\/?/ +const reURI = /^https:\/\/news\.ycombinator\.com\/user\?id=(.*)\/?/ const processURI = (uri, opts) => { if (!opts) { opts = {} } diff --git a/src/serviceproviders/lobsters.js b/src/serviceproviders/lobsters.js index cec91b0..147eac6 100644 --- a/src/serviceproviders/lobsters.js +++ b/src/serviceproviders/lobsters.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const reURI = /^https:\/\/lobste.rs\/u\/(.*)\/?/ +const reURI = /^https:\/\/lobste\.rs\/u\/(.*)\/?/ const processURI = (uri, opts) => { if (!opts) { opts = {} }